Dear Iliyan, it's great. But I couldn't find R_ARM_NONE fix in the latest bionic for cupcake branch on 2009/03/04.
http://android.git.kernel.org/?p=platform/bionic.git;a=blob_plain;f=linker/linker.c;hb=1dc9e472e19acfe6dc7f41e429236e7eef7ceda1 Regards, nagamatu On 3月18日, 午後3:37, Iliyan Malchev <[email protected]> wrote: > That's already fixed on cupcake. > > 2009/3/17 nagamatu <[email protected]>: > > > > > When R_ARM_NONE symbol is included in a binary file, I got > > the following error message from dynamic linker. > > > # /system/bin/test > > bionic/linker/linker.c:1181| ERROR: 8435 unknown reloc type 0 @ > > 0xa3b8 (19) > > bionic/linker/linker.c:1579| ERROR: failed to link /system/bin/test > > bionic/linker/linker.c:1677| ERROR: CANNOT LINK EXECUTABLE '/system/ > > bin/test' > > > This problem can be fixed with adding 2 line of code for dynamic > > linker. > > > *** linker.c.org 2009-02-05 15:20:12.000000000 +0900 > > --- linker.c 2009-03-11 13:46:47.000000000 +0900 > > *************** > > *** 1174,1179 **** > > --- 1174,1181 ---- > > reloc, s->st_size, sym_addr, sym_name); > > memcpy((void*)reloc, (void*)sym_addr, s->st_size); > > break; > > + case R_ARM_NONE: // just a marker. ignore this > > + break; > > #endif /* ANDROID_ARM_LINKER */ > > > default: > > > On 3月18日, 午後2:48, Iliyan Malchev <[email protected]> wrote: > >> Can you send me the binaries for the libraries in question? It would > >> be easier to debug this issue this way. If not, then please do the > >> following: > > >> 1. cd bionic/linker > >> 2. edit linker_debug.h, setting the following macros to 1: > > >> #define LINKER_DEBUG 1 > >> #define TRACE_DEBUG 1 > > >> 3. cd $TOP; make linker > >> 4. adb remount && adb sync > >> 5. rerun your test, as follows: > > >> adb shell "DEBUG=3 libtest" | tee log.txt > > >> and email me the file. > > >> Thanks > >> Iliyan > > >> On Tue, Mar 17, 2009 at 10:35 PM, Girish <[email protected]> wrote: > > >> > Hi lliyan Malchev, > > >> > Thanks for the i/ps.I searched for R_ARM_NONE in the .so file using > >> > command arm-eabi-readelf -a libtest1.so as told by you. But i DIDNOT > >> > find R_ARM_NONE. > > >> > Although i found R_ARM_RELATIVE and R_ARM_JUMP_SLOT. Can you clarify > >> > some more on this issue. and how to fix the same. > > >> > Regards > >> > Girish --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "android-framework" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-framework?hl=en -~----------~----~----~----~------~----~------~--~---
