ELF_DYNAMIC_INTERPRETER
Manoj Verma, Noida
manojv@noida.hcltech.com
Fri Nov 21 14:48:00 GMT 2003
strings - myout | grep ld-linux " gives
/c/MinGW/msys/home/lib/ld-linux.so.2
ld-linux.so.2
> -----Original Message-----
> From: Richard Earnshaw [mailto:rearnsha@arm.com]
> Sent: Friday, November 21, 2003 8:08 PM
> To: Manoj Verma, Noida
> Cc: crossgcc@sources.redhat.com; Richard.Earnshaw@arm.com; Phil
> Blundell; karuottu@mbnet.fi
> Subject: Re: ELF_DYNAMIC_INTERPRETER
>
>
> > 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