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]
Other format: [Raw text]

Re: Relocation bug


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


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