Writing addend into instructions

Alan Modra alan@linuxcare.com.au
Tue Mar 13 21:08:00 GMT 2001


On 13 Mar 2001, Torbjorn Granlund wrote:

> But for ELF, writing the addends into, say, a 16-bit instruction field
> seems like a strange thing to do.  Most ELF ABIs require that such
> addends are ignored anyway.

One (rather poor) reason why you might want to write the addend into
the insn is to make disassembly of object files "look right".  It would be
better to teach the disassembler how to apply the relocation.

Alan
-- 
Linuxcare



More information about the Binutils mailing list