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]

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]
  LOAD           0x000000 0x00008000 0x00008000 0x3253a 0x3253a R E 0x8000
  LOAD           0x03253c 0x0004253c 0x0004253c 0x01020 0x02558 RW  0x8000



The absolute path get appended with the interpreter, which would be
non-existing on my target and I am unable to execute my prog.



> -----Original Message-----
> From: Richard Earnshaw [mailto:rearnsha@arm.com]
> Sent: Friday, November 21, 2003 7:46 PM
> To: Manoj Verma, Noida
> Cc: crossgcc@sources.redhat.com; Phil Blundell; karuottu@mbnet.fi;
> Richard.Earnshaw@arm.com
> Subject: Re: ELF_DYNAMIC_INTERPRETER 
> 
> 
> > But say if my application requires the 'arm-linux-gcc' and the
> > 'arm-linux-ld' to be invoked separately, then isn't it the 
> better way out?
> 
> No.  If you must invoke ld directly, then you must know what you are 
> doing, or you get a broken application.  In this case that 
> also involves 
> telling ld what dynamic linker to use.
> 
> 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]