This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: Relocatable executables
- To: Uros Prestor <uros dot prestor at nexsi dot com>
- Subject: Re: Relocatable executables
- From: "H . J . Lu" <hjl at lucon dot org>
- Date: Wed, 22 Aug 2001 13:18:06 -0700
- Cc: binutils at sources dot redhat dot com
- References: <3B8412F6.FC10F886@nexsi.com>
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.