forked from Imagelibrary/binutils-gdb
gold/
* symtab.h (Symbol::is_cxx_vtable): New function. * target-reloc.h (relocate_section): Check for vtable symbol. * testsuite/Makefile.am (missing_key_func.sh): New test case. * testsuite/Makefile.in: Regenerate. * testsuite/missing_key_func.cc: New test source. * testsuite/missing_key_func.sh: New test script.
This commit is contained in:
@@ -817,6 +817,11 @@ class Symbol
|
||||
is_predefined() const
|
||||
{ return this->is_predefined_; }
|
||||
|
||||
// Return true if this is a C++ vtable symbol.
|
||||
bool
|
||||
is_cxx_vtable() const
|
||||
{ return is_prefix_of("_ZTV", this->name_); }
|
||||
|
||||
protected:
|
||||
// Instances of this class should always be created at a specific
|
||||
// size.
|
||||
|
||||
Reference in New Issue
Block a user