summaryrefslogtreecommitdiff
path: root/gas/doc/internals.texi
diff options
context:
space:
mode:
authorJoern Rennecke <joern.rennecke@arc.com>2001-08-29 12:22:27 +0000
committerJoern Rennecke <joern.rennecke@arc.com>2001-08-29 12:22:27 +0000
commit533f05aaf50ceb255301272f16b99cee3f611589 (patch)
tree1d42299a5b7834caa520de8fc06c4dfc16a946ba /gas/doc/internals.texi
parente31e64df9e2415a6e9037fb5471d51b9fd6307cd (diff)
downloadbinutils-redhat-533f05aaf50ceb255301272f16b99cee3f611589.tar.gz
* doc/internals.texi (MD_PCREL_FROM_SECTION): Change
docuemntation to reflect reality.
Diffstat (limited to 'gas/doc/internals.texi')
-rw-r--r--gas/doc/internals.texi12
1 files changed, 7 insertions, 5 deletions
diff --git a/gas/doc/internals.texi b/gas/doc/internals.texi
index 1d2313a0d9..03162e044c 100644
--- a/gas/doc/internals.texi
+++ b/gas/doc/internals.texi
@@ -1274,12 +1274,14 @@ You may define this macro to indicate whether a fixup against a locally defined
symbol should be adjusted to be against the section symbol. It should return a
non-zero value if the adjustment is acceptable.
-@item MD_PCREL_FROM_SECTION
+@item MD_PCREL_FROM_SECTION (@var{fixp}, @var{section})
@cindex MD_PCREL_FROM_SECTION
-If you define this macro, it should return the offset between the address of a
-PC relative fixup and the position from which the PC relative adjustment should
-be made. On many processors, the base of a PC relative instruction is the next
-instruction, so this macro would return the length of an instruction.
+If you define this macro, it should return the position from which the PC
+relative adjustment for a PC relative fixup should be made. On many
+processors, the base of a PC relative instruction is the next instruction,
+so this macro would return the length of an instruction, plus the address of
+the PC relative fixup. The latter can be calculated as
+@var{fixp}->fx_where + @var{fixp}->fx_frag->fr_address .
@item md_pcrel_from
@cindex md_pcrel_from