Wednesday, January 12, 2011

android 上的dynamic linker

之前想在android上的 dynamic linker (/system/bin/linker) 上debug

source 在 bionic/linker
http://android.git.kernel.org/?p=platform/bionic.git;a=tree;f=linker;h=fc0953ae9b536b112c5a8afbfbe4548125123313;hb=HEAD

可是目前不知道如何來enable linker.c裡的debug_verbosity
因為目前發現
並不是新process起來後都會來用linker

現在的猜想是只有在之前的zygote才會來call 這個linker
所以我在之後launch activity 即使有去load自己的jni lib
也都不能看到__linker__init的log

另外也去找了gcc的code
http://android.git.kernel.org/?p=toolchain/gcc.git;a=summary

目前有看到 BIONIC_DYNAMIC_LINKER的code
但這會被包起來 最後應該是接到gcc.c裡的linker_spec裡

不過還要花時間來証實這些事就是了

2 comments:

Anonymous said...

[url=http://www.cheaptimberlandboot1973.com]cheap timberland boots[/url] objjoj http://www.cheaptimberlandboot1973.com [url=http://www.cheaptimberlandbootssale.com]cheap timberland boots[/url] eqwofq http://www.cheaptimberlandbootssale.com [url=http://www.cheaptimberlandbootsmen.com]timberland boots men[/url] enxsgy http://www.cheaptimberlandbootsmen.com [url=http://www.cheaptimberlandbootoutlet.com]timberland boots sale[/url] dxvllv http://www.cheaptimberlandbootoutlet.com [url=http://www.saletimberlandboots.org]timberland boots sale[/url] sjodhr http://www.saletimberlandboots.org u

Anonymous said...

your intеrnet sіte is obviously notеwoгthy to you
, pleasе work on the РΗP ovеrsight
at the tоp thоugh

Also vіsіt my wеb page gloriouslinks.com