This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Writing addend into instructions


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]