aboutsummaryrefslogtreecommitdiff
path: root/gold/testsuite/exclude_libs_test_3.c
diff options
context:
space:
mode:
authorDoug Kwan <dougkwan@google.com>2009-05-26 22:52:56 +0000
committerDoug Kwan <dougkwan@google.com>2009-05-26 22:52:56 +0000
commit2fdd743f6d30838e94d0c23518028513e6803095 (patch)
treec82d549ef87c282155cf898bb40bd0a50a37d496 /gold/testsuite/exclude_libs_test_3.c
parent68d7e96a436ae00396227dca4668999b7a4bceef (diff)
downloadbinutils-2fdd743f6d30838e94d0c23518028513e6803095.zip
binutils-2fdd743f6d30838e94d0c23518028513e6803095.tar.gz
binutils-2fdd743f6d30838e94d0c23518028513e6803095.tar.bz2
2009-05-26 Doug Kwan <dougkwan@google.com>
* options.cc (General_options::parse_exclude_libs). Fix a comment. (General_options::check_excluded_libs): Strip off directories in archive name before matching like GNU ld does. * testsuite/Makefile.am (MOSTLYCLEANFILES, exclude_libs_test_DEPENDENCIES): Add alt/libexclude_libs_test_3.a (exclude_libs_test_LDFLAGS): Add linker option -Wl,--exclude-libs,libexclude_libs_test_3 (exclude_libs_test_LADD): Add alt/libexclude_libs_test_3.a as an explicit archive without using -l. (alt/libexclude_libs_test_3.a): New make rule. * testsuite/Makefile.in: Regenerate. * testsuite/exclude_libs_test.c : Declare lib3_default(). (main): Call it. * exclude_libs_test.sh: Add tests for alt/exclude_libs_test_3.a. * exclude_libs_test_3.c: New file.
Diffstat (limited to 'gold/testsuite/exclude_libs_test_3.c')
-rw-r--r--gold/testsuite/exclude_libs_test_3.c24
1 files changed, 24 insertions, 0 deletions
diff --git a/gold/testsuite/exclude_libs_test_3.c b/gold/testsuite/exclude_libs_test_3.c
new file mode 100644
index 0000000..b4e2635
--- /dev/null
+++ b/gold/testsuite/exclude_libs_test_3.c
@@ -0,0 +1,24 @@
+void lib3_default (void);
+void lib3_hidden (void);
+void lib3_internal (void);
+void lib3_protected (void);
+
+void __attribute__((visibility ("default")))
+lib3_default (void)
+{
+}
+
+void __attribute__((visibility ("hidden")))
+lib3_hidden (void)
+{
+}
+
+void __attribute__((visibility ("internal")))
+lib3_internal (void)
+{
+}
+
+void __attribute__((visibility ("protected")))
+lib3_protected (void)
+{
+}