Re: Path for .so to get linked against executable for target

2009-04-27 Thread Mani
I think, the Error Printed by the Linker is incorrect - we have the following piece of code( in Function - 1char *sym_name = NULL; 2 DEBUG("%5d Processing '%s' relocation at index %d\n", pid, si->name, idx); 3 if(sym != 0) { 4 s = _do_lookup(si, st

Re: Path for .so to get linked against executable for target

2009-03-29 Thread Iliyan Malchev
This fix is already available. You can see that the loader is now ignoring R_ARM_NONE relocations. http://android.git.kernel.org/?p=platform/bionic.git;a=blob;f=linker/linker.c;h=300a95c0dd5c7edcb21b45bfeec8f8573a456ace;hb=HEAD On Sat, Mar 28, 2009 at 12:12 AM, kgvs.android wrote: > > I also f

Re: Path for .so to get linked against executable for target

2009-03-28 Thread Eric Chen
CRAP!!! On Sat, Mar 28, 2009 at 2:12 AM, kgvs.android wrote: > > I also face same issue as of Girish. The executable is not running and > halts with the error bionic/linker/linker.c:1078| ERROR: 2967 cannot > locate '(null)'... > - > Kurt Glivos > > > --~--~-~--~

Re: Path for .so to get linked against executable for target

2009-03-28 Thread kgvs.android
I also face same issue as of Girish. The executable is not running and halts with the error bionic/linker/linker.c:1078| ERROR: 2967 cannot locate '(null)'... - Kurt Glivos --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Gro

Re: Path for .so to get linked against executable for target

2009-03-19 Thread nagamatu
According to your debug message, libtest1.so requires "longjmp" symbol for link itself. Error message about '(null)' must be replace with "longjmp" symbol name. In linker.c, sym_name variable is used to show symbol name, but it is not assigned to valid value at this timing. The following initializ

Re: Path for .so to get linked against executable for target

2009-03-18 Thread Girish
Hi lliyan, Any updates on this you can give ? It will be helpful. 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 android-framework@goog

Re: Path for .so to get linked against executable for target

2009-03-18 Thread Girish
Hi lliyan Malchev and nagamatu, Can the latest cupcake code will give a fix for my problem or yet to be fixed ? lliyan i sent the file to your e-mail id. lliyan hope this fix will come soon. or u can send me the fix will test and let you know the result For a quick look pasting log here [ andr

Re: Path for .so to get linked against executable for target

2009-03-18 Thread Iliyan Malchev
Hm, you are right! Will fix :) I was thinking about the prelinker, which does handle R_ARM_NONE. 2009/3/18 nagamatu : > > 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

Re: Path for .so to get linked against executable for target

2009-03-18 Thread nagamatu
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

Re: Path for .so to get linked against executable for target

2009-03-17 Thread Iliyan Malchev
That's already fixed on cupcake. 2009/3/17 nagamatu : > > 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:

Re: Path for .so to get linked against executable for target

2009-03-17 Thread nagamatu
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:16

Re: Path for .so to get linked against executable for target

2009-03-17 Thread Iliyan Malchev
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

Re: Path for .so to get linked against executable for target

2009-03-17 Thread Girish
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. Reg

Re: Path for .so to get linked against executable for target

2009-03-17 Thread Iliyan Malchev
This looks like a bug which is fixed in cupcake, where we were not properly ignoring R_ARM_NONE relocations. Can you run arm-eabi-readelf -a libtest1.so and take a look at the relocations? Is there an R_ARM_NONE? On Tue, Mar 17, 2009 at 9:47 PM, Girish wrote: > > To give some more info > > I tr

Re: Path for .so to get linked against executable for target

2009-03-17 Thread Girish
To give some more info I tried following 1)placed the .exe in /data and libs in /system/lib 2)placed the .exe in and libs bothin /data Changed mode of exe to give executable permissions. Is there some thing else i need to do ? please clarify Regards Girish --~--~-~--~~

Path for .so to get linked against executable for target

2009-03-17 Thread Girish
I am trying to build a exe using shared objects generated on android platfrom. I am able to build them without compile time linking errors but when i try to execute them li gives me linker problem. in which path i need to place the shared object to get them linked against executable on the hardwar