diff options
Diffstat (limited to 'linker/README.TXT')
-rw-r--r-- | linker/README.TXT | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/linker/README.TXT b/linker/README.TXT index 4fff14e..052a65b 100644 --- a/linker/README.TXT +++ b/linker/README.TXT @@ -112,3 +112,32 @@ On x86, the lists of constructors and destructors are placed in special sections named ".ctors" and ".dtors", and the DT_INIT / DT_FINI functions are in charge of calling them explicitely. + +Debugging: +---------- + +It is possible to enable debug output in the dynamic linker. To do so, +follow these steps: + +1/ Modify the line in Android.mk that says: + + LOCAL_CFLAGS += -DLINKER_DEBUG=0 + + Into the following: + + LOCAL_CFLAGS += -DLINKER_DEBUG=1 + +2/ Force-rebuild the dynamic linker: + + cd bionic/linker + mm -B + +3/ Rebuild a new system image. + +You can increase the verbosity of debug traces by defining the DEBUG +environment variable to a numeric value from 0 to 2. This will only +affect new processes being launched. + +By default, traces are sent to logcat, with the "linker" tag. You can +change this to go to stdout instead by setting the definition of +LINKER_DEBUG_TO_LOG to 0 in "linker_debug.h" |