This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: PowerPC ELF: retain program headers and relocation records inoutput file?
- To: Paul Mikell <pmikell at rare dot co dot uk>
- Subject: Re: PowerPC ELF: retain program headers and relocation records inoutput file?
- From: Alan Modra <alan at linuxcare dot com dot au>
- Date: Wed, 31 Jan 2001 17:33:25 +1100 (EST)
- cc: binutils at sourceware dot cygnus dot com
On Mon, 29 Jan 2001, Paul Mikell wrote:
> I have compiled gcc-2.95.2 and binutils 2.10.1 for cross-compiling from Cygwin
> to PowerPC. The target machine requires the executable to be converted to a
> proprietary format before it can be run. In order for this conversion to work,
> the ELF file created by ld must contain program headers and relocation records.
> Is there any way that GNU ld can create such an output file?
"ld -r" is the normal way to create partialy linked files with relocation
records, but that doesn't create executables. "ld --emit-relocs" may do
what you want.
--
Linuxcare. Support for the Revolution.