[PATCH] MIPS bfd: abi 64 ld -r

Alan Modra amodra@bigpond.net.au
Tue Sep 3 22:09:00 GMT 2002


On Wed, Sep 04, 2002 at 01:25:02AM -0300, Alexandre Oliva wrote:
> .data
> foo:
> .word bar
> bar:
> 
> assemble it with the IRIX assembler (n32), and you get:
> 
> 0000000000000000 <.data>:
>    0:   00000004        sllv    $zero,$zero,$zero
>                         0: R_MIPS_32    .data
>                ^ note the in-place addend,    ^ nothing here

If this reloc really is RELA, then that isn't an "in-place addend".
Rather, it's random garbage in the section contents that should be
ignored.  At least, that's the way standard RELA relocs work, but
mips is weird.  ;)

-- 
Alan Modra
IBM OzLabs - Linux Technology Centre



More information about the Binutils mailing list