diff options
| author | Alan Modra <amodra@gmail.com> | 2011-01-21 13:18:19 +0000 |
|---|---|---|
| committer | Alan Modra <amodra@gmail.com> | 2011-01-21 13:18:19 +0000 |
| commit | 9bc8bb33fe5a5a79b3146593a39edac7bb7b0dfd (patch) | |
| tree | 107833af5cdf1180b3ce46737ff14f3e67bad000 /ld/ld.texinfo | |
| parent | 6b069ee70de3c540cef090a8733f8fc233cdb342 (diff) | |
| download | ppe42-binutils-9bc8bb33fe5a5a79b3146593a39edac7bb7b0dfd.tar.gz ppe42-binutils-9bc8bb33fe5a5a79b3146593a39edac7bb7b0dfd.zip | |
* 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. |

