ld expression section
authorAlan Modra <amodra@gmail.com>
Tue, 4 Oct 2016 00:13:50 +0000 (10:43 +1030)
committerAlan Modra <amodra@gmail.com>
Tue, 4 Oct 2016 00:13:50 +0000 (10:43 +1030)
commit94b41882b09a0b61c27cb0220ac31d9f5496e13c
tree1c9a274ffaaf601dc8e03c2e52badcc912703402
parent9ad39107ca6e4efcda0f48a6abf528844a2f11aa
ld expression section

Changes the result of ld expressions that were previously plain
numbers to be an absolute address, in the same circumstances where
numbers are treated as absolute addresses.

* ld.texinfo (Expression Section): Update result of arithmetic
expressions.
* ldexp.c (arith_result_section): New function.
(fold_binary): Use it.
ld/ChangeLog
ld/ld.texinfo
ld/ldexp.c