Fix problem where gold does not create base version for executables.
authorCary Coutant <ccoutant@gmail.com>
Wed, 20 Jun 2018 08:24:11 +0000 (01:24 -0700)
committerCary Coutant <ccoutant@gmail.com>
Wed, 20 Jun 2018 08:25:04 +0000 (01:25 -0700)
commitebb1332297da904a4adab0d3696a5512604f5edd
treedb27440b898ad42f3200a5024e014cc40c7cb08b
parent160d1b3d74593bf42155da24569f54a6e7140f65
Fix problem where gold does not create base version for executables.

gold/
PR gold/23268
* dynobj.cc (Versions::Versions): Change init for needs_base_version_.
(Versions::record_version): Add verdefs for both shared objects and
executables.
(Versions::add_def): Likewise for base version.
(Versions::add_need): Don't add base version for executables.
(Versions::version_index): Look up version for both shared objects and
executables.
* testsuite/Makefile.am (ver_test_14): New test case.
* testsuite/Makefile.in: Regenerate.
* testsuite/ver_test_14.script: New version script.
* testsuite/ver_test_14.sh: New test script.
gold/ChangeLog
gold/dynobj.cc
gold/testsuite/Makefile.am
gold/testsuite/Makefile.in
gold/testsuite/ver_test_14.script [new file with mode: 0644]
gold/testsuite/ver_test_14.sh [new file with mode: 0755]