This is the mail archive of the crossgcc@sources.redhat.com mailing list for the crossgcc project.
See the CrossGCC FAQ for lots more information.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
> The problem with this approach is: > > If I give something like: > > $ arm-linux-ld test.o -dynamic-linker=/lib/ld-linux.so.2 -o myout > > and I do: > $arm-linux-readelf -l myout > > i see: > Program Headers: > Type Offset VirtAddr PhysAddr FileSiz MemSiz Flg Align > PHDR 0x000034 0x00008034 0x00008034 0x000c0 0x000c0 R E 0x4 > INTERP 0x0000f4 0x000080f4 0x000080f4 0x00013 0x00013 R 0x1 > [Requesting program interpreter: /c/MinGW/msys/home/lib/ld-linux.so.2] Something's fishy here. I suspect readelf is lying to you. The INTERP section is only 19 bytes long (0x13), which is exactly enough to hold the string "/lib/ld-linux.so.2\0", but no more. So I think readelf must be appending the additional information. What does "strings - myout | grep ld-linux " give? R. ------ Want more information? See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/ Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |