This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: Relocation bug
- From: Alan Modra <amodra at bigpond dot net dot au>
- To: Ralf Baechle <ralf at linux-mips dot org>
- Cc: Eric Christopher <echristo at redhat dot com>, "H. J. Lu" <hjl at lucon dot org>, macro at ds2 dot pg dot gda dot pl, binutils at sources dot redhat dot com, cgd at broadcom dot com, rafal at netbsd dot org, Per Fogelström <pefo at opsycon dot se>
- Date: Mon, 24 Feb 2003 14:34:25 +1030
- Subject: Re: Relocation bug
- References: <20030222010409.A17169@linux-mips.org> <20030221174145.A6294@lucon.org> <1045969558.5607.147.camel@ghostwheel.ges.redhat.com> <20030223165311.A24279@linux-mips.org>
On Sun, Feb 23, 2003 at 04:53:11PM +0100, Ralf Baechle wrote:
> Correct linker:
>
> [ralf at dea b0rked]$ mips-linux-objdump --full-contents --section=.data s.so
>
> s.so: file format elf32-tradbigmips
>
> Contents of section .data:
> 40410 00041644 00000000 00000000 00000000 ...D............
> ^^^^^^^^
>
> Which is the address of .data plus 0x1234.
Hmm, if you do this then I think you should be using symbol index zero
in the relocation too.
--
Alan Modra
IBM OzLabs - Linux Technology Centre