Puzzle:Is addend ok when handling relocations in linking mips32-elf

Alan Modra amodra@bigpond.net.au
Mon Mar 9 23:26:00 GMT 2009

On Mon, Mar 09, 2009 at 07:11:45PM +0800, Amker.Cheng wrote:
> here comes the problem, If i have a howto structure with nonzero bitpos,
> I think addend will be wrong and should be right shift with howto->bitpos.

Left shift actually.  reloc.c:bfd_perform_relocation shows what should
be done.

Alan Modra
Australia Development Lab, IBM

More information about the Binutils mailing list