Put soname in the version definition section
authorH.J. Lu <hjl.tools@gmail.com>
Mon, 17 Apr 2017 14:47:17 +0000 (07:47 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Mon, 17 Apr 2017 14:47:32 +0000 (07:47 -0700)
commite6699019c4f363f804f9646974ab1d5e78785ffc
tree1e81c7c4cb6760c4115f4ab0b9cb0d2ef970629e
parent305d16a9beff2a817ee03b3881da68eb3a29edec
Put soname in the version definition section

commit 902e9fc76a0ec9f642cefa71ef88cca1c675ad54
Author: Maciej W. Rozycki <macro@imgtec.com>
Date:   Tue Feb 21 01:46:42 2017 +0000

    PR ld/20828: Move symbol version processing ahead of GC symbol sweep

breaks version definition with --version-script --soname.  This patch
fixes it by getting soname index before generating the version definition
section.

bfd/

PR ld/21389
* elflink.c (bfd_elf_size_dynamic_sections): Get soname index
before generating the version definition section.

ld/

PR ld/21389
* testsuite/ld-elf/pr21389.map: New file.
* testsuite/ld-elf/pr21389.s: Likewise.
* testsuite/ld-elf/pr21389a.d: Likewise.
* testsuite/ld-elf/pr21389b.d: Likewise.
* testsuite/ld-elf/pr21389c.d: Likewise.
bfd/ChangeLog
bfd/elflink.c
ld/ChangeLog
ld/testsuite/ld-elf/pr21389.map [new file with mode: 0644]
ld/testsuite/ld-elf/pr21389.s [new file with mode: 0644]
ld/testsuite/ld-elf/pr21389a.d [new file with mode: 0644]
ld/testsuite/ld-elf/pr21389b.d [new file with mode: 0644]
ld/testsuite/ld-elf/pr21389c.d [new file with mode: 0644]