More cases of missing TO_ADDR in ldlang.c
authorAlan Modra <amodra@gmail.com>
Thu, 31 Mar 2016 04:32:14 +0000 (15:02 +1030)
committerAlan Modra <amodra@gmail.com>
Thu, 31 Mar 2016 09:05:33 +0000 (19:35 +1030)
commitfc90c28021804df1f5bf7f1381d893470c64c417
tree7ccfab4ab13fb98478e5d7c0d63961fef5673970
parente046cf801d513ceafc38216ec4e2a907b52a3f91
More cases of missing TO_ADDR in ldlang.c

and one extraneous occurrence.

* ldlang.c (TO_ADDR, TO_SIZE, opb_shift): Move earlier in file.
(lang_insert_orphan): Use TO_ADDR in __stop sym calculation.
(print_input_section): Don't use TO_ADDR when printing section
size.
(lang_size_sections_1): Use TO_ADDR in overlay lma calculation.
(lang_size_sections): Use TO_ADDR in relro end calculation.
ld/ChangeLog
ld/ldlang.c