This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Writing addend into instructions
- To: Torbjorn Granlund <tege at swox dot com>
- Subject: Writing addend into instructions
- From: Andrew Haley <aph at redhat dot com>
- Date: Tue, 13 Mar 2001 21:05:14 +0000 (GMT)
- Cc: binutils at sources dot redhat dot com
- References: <86k85t4chl.fsf@king.swox.se>
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.