This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Relocatable executables


On Wed, Aug 22, 2001 at 01:15:50PM -0700, Uros Prestor wrote:
> Hello,
> 
> I am using gcc/binutils to develop software for an embedded system (MIPS
> ELF).  The executable is statically linked at a fixed text address, no
> PIC.  At load time I need to relocate the executable at a different
> address.  Is there a way to have ld include relocation info in the
> executable?
> 

`-q'
`--emit-relocs'
     Leave relocation sections and contents in fully linked
     exececutables.  Post link analysis and optimization tools may need
     this information in order to perform correct modifications of
     executables.  This results in larger executables.


H.J.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]