aboutsummaryrefslogtreecommitdiff
path: root/gold/dynobj.h
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>2011-07-02 05:30:00 +0000
committerIan Lance Taylor <ian@airs.com>2011-07-02 05:30:00 +0000
commit2113106124ff094741fc3a0edacf118739ce766d (patch)
treefccdcee567edc60e4efddc45993f1d8c8eca416c /gold/dynobj.h
parent9e3dc3160bdf3e40e72ae1a174aaf44f7553a269 (diff)
downloadbinutils-2113106124ff094741fc3a0edacf118739ce766d.zip
binutils-2113106124ff094741fc3a0edacf118739ce766d.tar.gz
binutils-2113106124ff094741fc3a0edacf118739ce766d.tar.bz2
PR gold/12525
PR gold/12952 * resolve.cc (Symbol::override_base_with_special): Don't override the version if the overriding symbol has a different name. * dynobj.cc (Versions::add_def): Add dynpool parameter. Change all callers. If we give an error about an undefined version, define the base version if necessary. * dynobj.h (class Versions): Update declaration. * testsuite/weak_alias_test_5.cc: New file. * testsuite/weak_alias_test.script: New file. * testsuite/weak_alias_test_main.cc: Check that versioned_symbol and versioned_alias have the right value, and call t2. * testsuite/Makefile.am (weak_alias_test_DEPENDENCIES): Add weak_alias_test_5.so. (weak_alias_test_LDADD): Likewise. (weak_alias_test_5_pic.o, weak_alias_test_5.so): New targets. * testsuite/Makefile.in: Rebuild.
Diffstat (limited to 'gold/dynobj.h')
-rw-r--r--gold/dynobj.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/gold/dynobj.h b/gold/dynobj.h
index 1f3243f..186b67c 100644
--- a/gold/dynobj.h
+++ b/gold/dynobj.h
@@ -599,7 +599,8 @@ class Versions
// Handle a symbol SYM defined with version VERSION.
void
- add_def(const Symbol* sym, const char* version, Stringpool::Key);
+ add_def(Stringpool*, const Symbol* sym, const char* version,
+ Stringpool::Key);
// Add a reference to version NAME in file FILENAME.
void