aboutsummaryrefslogtreecommitdiff
path: root/gold/testsuite/weak_undef.h
diff options
context:
space:
mode:
authorCary Coutant <ccoutant@google.com>2008-04-17 00:14:36 +0000
committerCary Coutant <ccoutant@google.com>2008-04-17 00:14:36 +0000
commitf3c69fcab18257246fa945f4a85388b54a34e512 (patch)
tree1ace720949b4dac7cdfa149283f578069babf9df /gold/testsuite/weak_undef.h
parented83b9532695798e07c6f615d32e9c12109ff04e (diff)
downloadgdb-f3c69fcab18257246fa945f4a85388b54a34e512.zip
gdb-f3c69fcab18257246fa945f4a85388b54a34e512.tar.gz
gdb-f3c69fcab18257246fa945f4a85388b54a34e512.tar.bz2
* symtab.h (Symbol::is_strong_undefined): Removed unused function.
(Symbol::needs_plt_entry): Allow weak undefined symbols. (Symbol::needs_dynamic_reloc): Allow weak undefined symbols when building shared libraries. * testsuite/Makefile.am (weak_undef_nonpic_test): New target. (weak_undef_file1_nonpic.o, weak_undef_file2_nonpic.o) (weak_undef_lib_nonpic.so, alt/weak_undef_lib_nonpic.so): New targets. * testsuite/Makefile.in: Rebuild. * testsuite/weak_undef.h: New file. * testsuite/weak_undef_file1.cc: Add extra test cases. * testsuite/weak_undef_file2.cc: Likewise. * testsuite/weak_undef_test.cc: Likewise.
Diffstat (limited to 'gold/testsuite/weak_undef.h')
-rw-r--r--gold/testsuite/weak_undef.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/gold/testsuite/weak_undef.h b/gold/testsuite/weak_undef.h
new file mode 100644
index 0000000..17d5f02
--- /dev/null
+++ b/gold/testsuite/weak_undef.h
@@ -0,0 +1,25 @@
+// weak_undef.h -- test handling of weak undefined symbols for gold
+
+// Copyright 2008 Free Software Foundation, Inc.
+// Written by Cary Coutant <ccoutant@google.com>.
+
+// This file is part of gold.
+
+// This program is free software; you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation; either version 3 of the License, or
+// (at your option) any later version.
+
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+
+// You should have received a copy of the GNU General Public License
+// along with this program; if not, write to the Free Software
+// Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston,
+// MA 02110-1301, USA.
+
+extern int t1();
+extern int t2();
+extern int t3();