From f3c69fcab18257246fa945f4a85388b54a34e512 Mon Sep 17 00:00:00 2001 From: Cary Coutant Date: Thu, 17 Apr 2008 00:14:36 +0000 Subject: * 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. --- gold/testsuite/weak_undef.h | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 gold/testsuite/weak_undef.h (limited to 'gold/testsuite/weak_undef.h') 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 . + +// 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(); -- cgit v1.1