ld insert_os_after ignoring first assignment
authorAlan Modra <amodra@gmail.com>
Sun, 7 Oct 2018 22:14:50 +0000 (08:44 +1030)
committerAlan Modra <amodra@gmail.com>
Mon, 8 Oct 2018 09:56:08 +0000 (20:26 +1030)
commit7358942661ccb0ea1e819fd2f5d47914cebf0aa2
tree647013dcb49ea45e21d982d4c5243d83a7694382
parent5d695627883b32cf33adb529c8fc7271b46dcf55
ld insert_os_after ignoring first assignment

Some time ago the pr19593 test was xfailed for alpha.  This turned out
to be the wrong course of action since the test exposed a bug in
orphan section placement.  On alpha, orphan sections were being
inserted before ". = SIZEOF_HEADERS" due to the test having two
assignments, and on alpha, an output section statement from
-Ttext-segment being passed to ld.

* ldlang.c (insert_os_after): Clear ignore_first on assignment to
dot, not any assignment.  Clear ignore_first on output section
statement contents too.
* testsuite/ld-elf/pr19539.d: Remove alpha xfail.
ld/ChangeLog
ld/ldlang.c
ld/testsuite/ld-elf/pr19539.d
This page took 0.026113 seconds and 4 git commands to generate.