solaris2.em: Fold after_allocation into before_allocation
authorH.J. Lu <hjl.tools@gmail.com>
Fri, 19 Jan 2018 00:21:46 +0000 (16:21 -0800)
committerH.J. Lu <hjl.tools@gmail.com>
Fri, 19 Jan 2018 00:22:13 +0000 (16:22 -0800)
commitc5bdb022609634970dd981517d478e6cc332629c
tree02fa73ce55df5b1450b4e10e47bfe450576437d7
parent85ed4f7ecea48a92b33f4c6b3f8d9e0e858ed617
solaris2.em: Fold after_allocation into before_allocation

Since all ELF linkers call check_relocs after opening all inputs, we
can fold after_allocation into before_allocation so that local dynamic
symbols will be placed before global dynamic symbols in .dynsym section.
This fixed:

FAIL: Common symbol override test (auxiliary shared object build)
FAIL: ld-elf/pr19617a
FAIL: ld-elf/pr19698

for i386-solaris2.12 and x86_64-solaris2.12 targets.

PR ld/22728
* emultempl/solaris2.em (elf_solaris2_after_allocation): Fold
into ...
(elf_solaris2_before_allocation): This.
(LDEMUL_AFTER_ALLOCATION): Removed.
ld/ChangeLog
ld/emultempl/solaris2.em