diff options
author | Cary Coutant <ccoutant@gmail.com> | 2018-06-20 01:24:11 -0700 |
---|---|---|
committer | Cary Coutant <ccoutant@gmail.com> | 2018-06-20 01:25:04 -0700 |
commit | ebb1332297da904a4adab0d3696a5512604f5edd (patch) | |
tree | db27440b898ad42f3200a5024e014cc40c7cb08b /gold/testsuite/ver_test_14.script | |
parent | 160d1b3d74593bf42155da24569f54a6e7140f65 (diff) | |
download | binutils-ebb1332297da904a4adab0d3696a5512604f5edd.zip binutils-ebb1332297da904a4adab0d3696a5512604f5edd.tar.gz binutils-ebb1332297da904a4adab0d3696a5512604f5edd.tar.bz2 |
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.
Diffstat (limited to 'gold/testsuite/ver_test_14.script')
-rw-r--r-- | gold/testsuite/ver_test_14.script | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gold/testsuite/ver_test_14.script b/gold/testsuite/ver_test_14.script new file mode 100644 index 0000000..2400583 --- /dev/null +++ b/gold/testsuite/ver_test_14.script @@ -0,0 +1,6 @@ +V1 { +global: + extern "C++" { + "t2()"; "t3()"; "t4()"; + }; +}; |