2009-10-16 Doug Kwan <dougkwan@google.com>
authorDoug Kwan <dougkwan@google.com>
Fri, 16 Oct 2009 19:11:32 +0000 (19:11 +0000)
committerDoug Kwan <dougkwan@google.com>
Fri, 16 Oct 2009 19:11:32 +0000 (19:11 +0000)
commitc5617f2fb6d7c6a1898d920ac662209a195b3c9e
tree3cc0e6f7022a7431503777045283809c0aa3f762
parent0a8d1bde177b4f1ef4df5ba6a7b79a9df3d1497f
2009-10-16  Doug Kwan  <dougkwan@google.com>

* dynobj.cc (Versions::Versions): Initialize version_script_.
Only insert base version symbol definition for a shared object
if version script defines any version versions.
(Versions::define_base_version): New method definition.
(Versions::add_def): Check that base version is not needed.
(Versions::add_need): Define base version lazily.
* dynobj.h (Versions::define_base_version): New method declaration.
(Versions::needs_base_version_): New data member declaration.
* testsuite/Makefile.am (check_SCRIPTS): Add no_version_test.sh
(check_DATA): Add no_version_test.stdout.
(libno_version_test.so, no_version_test.o no_version_test.stdout):
New make rules.
* testsuite/Makefile.in: Regenerate.
* testsuite/no_version_test.c: New file.
* testsuite/no_version_test.sh: Ditto.
gold/ChangeLog
gold/dynobj.cc
gold/dynobj.h
gold/testsuite/Makefile.am
gold/testsuite/Makefile.in
gold/testsuite/no_version_test.c [new file with mode: 0644]
gold/testsuite/no_version_test.sh [new file with mode: 0755]