aboutsummaryrefslogtreecommitdiff
path: root/gold/testsuite
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>2009-12-31 01:14:34 +0000
committerIan Lance Taylor <ian@airs.com>2009-12-31 01:14:34 +0000
commit1c74fab0d1fd52933617779be761ce2cc860fa31 (patch)
tree6f909afc533442abeb4ead034395ffbfc7dff5a0 /gold/testsuite
parent48c5c55f2f2f30fed4eebca75728d77407090bc5 (diff)
downloadgdb-1c74fab0d1fd52933617779be761ce2cc860fa31.zip
gdb-1c74fab0d1fd52933617779be761ce2cc860fa31.tar.gz
gdb-1c74fab0d1fd52933617779be761ce2cc860fa31.tar.bz2
PR 10916
* symtab.cc (Symbol_table::add_from_relobj): When not exporting symbols from this object, don't change the visibility of an undefined symbol. * testsuite/exclude_libs_test_1.c (lib1_ref): New function.
Diffstat (limited to 'gold/testsuite')
-rw-r--r--gold/testsuite/exclude_libs_test_1.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/gold/testsuite/exclude_libs_test_1.c b/gold/testsuite/exclude_libs_test_1.c
index ced1aad..48b617b 100644
--- a/gold/testsuite/exclude_libs_test_1.c
+++ b/gold/testsuite/exclude_libs_test_1.c
@@ -2,6 +2,8 @@ void lib1_default (void);
void lib1_hidden (void);
void lib1_internal (void);
void lib1_protected (void);
+void lib1_ref (void);
+extern void lib2_default (void);
void __attribute__((visibility ("default")))
lib1_default (void)
@@ -22,3 +24,9 @@ void __attribute__((visibility ("protected")))
lib1_protected (void)
{
}
+
+void
+lib1_ref (void)
+{
+ lib2_default ();
+}