diff options
author | Alan Modra <amodra@bigpond.net.au> | 2011-01-21 13:18:19 +0000 |
---|---|---|
committer | Alan Modra <amodra@bigpond.net.au> | 2011-01-21 13:18:19 +0000 |
commit | 38e4999a2b9a0a36968b76252eefd8d624d53226 (patch) | |
tree | 91f39805a4f350799465c17137d4c5cc2c5dd2ba /ld/ld.texinfo | |
parent | 8dca5ee15e21eb95ac4a7f6133461fecee34a956 (diff) | |
download | binutils-redhat-38e4999a2b9a0a36968b76252eefd8d624d53226.tar.gz |
* ldexp.c (fold_binary): Set result section for arithmetic and
logical operations to NULL when both operands are in same section.
* ld.texinfo (Expression Section): Describe this.
Diffstat (limited to 'ld/ld.texinfo')
-rw-r--r-- | ld/ld.texinfo | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/ld/ld.texinfo b/ld/ld.texinfo index 4ea720fe04..9957d03b15 100644 --- a/ld/ld.texinfo +++ b/ld/ld.texinfo @@ -5567,8 +5567,13 @@ An operation involving only numbers results in a number. @item The result of comparisons, @samp{&&} and @samp{||} is also a number. @item -The result of other operations on relative addresses (after above -conversions) is a relative address in the same section as the operand(s). +The result of other binary arithmetic and logical operations on two +relative addresses in the same section or two absolute addresess +(after above conversions) is also a number. +@item +The result of other operations on relative addresses or one +relative address and a number, is a relative address in the same +section as the relative operand(s). @item The result of other operations on absolute addresses (after above conversions) is an absolute address. |