forked from Imagelibrary/binutils-gdb
* 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.
This commit is contained in:
@@ -164,7 +164,7 @@ class Target
|
||||
// Return whether SYM is known to be defined by the ABI. This is
|
||||
// used to avoid inappropriate warnings about undefined symbols.
|
||||
bool
|
||||
is_defined_by_abi(Symbol* sym) const
|
||||
is_defined_by_abi(const Symbol* sym) const
|
||||
{ return this->do_is_defined_by_abi(sym); }
|
||||
|
||||
protected:
|
||||
@@ -222,7 +222,7 @@ class Target
|
||||
|
||||
// Virtual function which may be implemented by the child class.
|
||||
virtual bool
|
||||
do_is_defined_by_abi(Symbol*) const
|
||||
do_is_defined_by_abi(const Symbol*) const
|
||||
{ return false; }
|
||||
|
||||
private:
|
||||
|
||||
Reference in New Issue
Block a user