From 9c2d0ef98abc05ea6fae35be6db732b22bba71b5 Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Tue, 16 Sep 2008 17:23:37 +0000 Subject: * target-reloc.h (relocate_section): Check whether a symbol is defined by the ABI before reporting an undefined symbol error. * target.h (Target::is_defined_by_abi): Make parameter const. (Target::do_is_defined_by_abi): Likewise. * i386.cc (Target_i386::do_is_defined_by_abi): Likewise. * powerpc.cc (Target_powerpc::do_is_defined_by_abi): Likewise. * sparc.cc (Target_sparc::do_is_defined_by_abi): Likewise. * x86_64.cc (Target_x86_64::do_is_defined_by_abi): Likewise. * testsuite/Makefile.am (tls_test_shared.so): Add -Wl,-z,defs. * testsuite/Makefile.in: Rebuild. --- gold/sparc.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gold/sparc.cc') diff --git a/gold/sparc.cc b/gold/sparc.cc index 7da59dd..cca78b7 100644 --- a/gold/sparc.cc +++ b/gold/sparc.cc @@ -130,7 +130,7 @@ class Target_sparc : public Sized_target section_size_type reloc_view_size); // Return whether SYM is defined by the ABI. bool - do_is_defined_by_abi(Symbol* sym) const + do_is_defined_by_abi(const Symbol* sym) const { // XXX Really need to support this better... if (sym->type() == elfcpp::STT_SPARC_REGISTER) -- cgit v1.1