Writing addend into instructions
Andrew Haley
aph@redhat.com
Tue Mar 13 13:05:00 GMT 2001
Torbjorn Granlund writes:
> Some assembler backends write addends into relocation fields, in
> addition to into the relocation record itself. An example is
> tc-ppc.c.
>
> For some object file formats, that is actually desirable. IBM's XCOFF
> format is one example.
>
> But for ELF, writing the addends into, say, a 16-bit instruction field
> seems like a strange thing to do.
I have seen uses for it, such as the ability to add multiple offsets
into a field.
> Does anybody see any problems with such a change?
Does it fix any bugs?
Andrew.
More information about the Binutils
mailing list