* COFF CALC_ADDEND comment
@ 2023-01-16 12:54 Alan Modra
0 siblings, 0 replies; only message in thread
From: Alan Modra @ 2023-01-16 12:54 UTC (permalink / raw)
To: binutils
Old COFF (and AOUT) targets have unusual relocation addends.
* coffcode.h (<Reading relocations>): Describe COFF addends.
diff --git a/bfd/coffcode.h b/bfd/coffcode.h
index e952bd77d6a..168bb8a55c2 100644
--- a/bfd/coffcode.h
+++ b/bfd/coffcode.h
@@ -5092,6 +5092,14 @@ SUBSUBSECTION
structure, in a back end specific way. For instance, the 386
uses the @code{r_type} to directly produce an index
into a howto table vector.
+
+ o Note that @code{arelent.addend} for COFF is often not what
+ most people understand as a relocation addend, but rather an
+ adjustment to the relocation addend stored in section contents
+ of relocatable object files. The value found in section
+ contents may also be confusing, depending on both symbol value
+ and addend somewhat similar to the field value for a
+ final-linked object. See @code{CALC_ADDEND}.
*/
#ifndef CALC_ADDEND
--
Alan Modra
Australia Development Lab, IBM
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2023-01-16 12:54 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-01-16 12:54 COFF CALC_ADDEND comment Alan Modra
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).