ELF_DYNAMIC_INTERPRETER
Richard Earnshaw
rearnsha@arm.com
Fri Nov 21 14:38:00 GMT 2003
> 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
More information about the crossgcc
mailing list