summaryrefslogtreecommitdiff
path: root/ld/ld.texinfo
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2012-09-16 22:21:00 +0000
committerAlan Modra <amodra@gmail.com>2012-09-16 22:21:00 +0000
commitc05f749ea63e65f2f56a329e542086749e6b74bc (patch)
tree44641fc7ed4d97594e458d0fbf1d847c1f7562ee /ld/ld.texinfo
parent666b578baa50340a13808a9f4eff0c044de9b52c (diff)
downloadbinutils-c05f749ea63e65f2f56a329e542086749e6b74bc.tar.gz
binutils-c05f749ea63e65f2f56a329e542086749e6b74bc.tar.bz2
binutils-c05f749ea63e65f2f56a329e542086749e6b74bc.zip
* ld.texinfo (Expression Section): Correct description of
conversions for a binary operation involving an absolute symbol and a number.
Diffstat (limited to 'ld/ld.texinfo')
-rw-r--r--ld/ld.texinfo12
1 files changed, 8 insertions, 4 deletions
diff --git a/ld/ld.texinfo b/ld/ld.texinfo
index dd3149c8df2..9bd9c7c9157 100644
--- a/ld/ld.texinfo
+++ b/ld/ld.texinfo
@@ -5646,14 +5646,18 @@ addresses, ld follows these rules to evaluate terms:
@itemize @bullet
@item
+Unary operations on an absolute address or number, and binary
+operations on two absolute addresses or two numbers, or between one
+absolute address and a number, apply the operator to the value(s).
+@item
Unary operations on a relative address, and binary operations on two
relative addresses in the same section or between one relative address
and a number, apply the operator to the offset part of the address(es).
@item
-Unary operations on an absolute address, and binary operations on one
-or more absolute addresses or on two relative addresses not in the
-same section, first convert any non-absolute term to an absolute
-address before applying the operator.
+Other binary operations, that is, between two relative addresses not
+in the same section, or between a relative address and an absolute
+address, first convert any non-absolute term to an absolute address
+before applying the operator.
@end itemize
The result section of each sub-expression is as follows: