* 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:
Cary Coutant
2013-05-21 21:14:40 +00:00
parent 60e8b3fccd
commit 93acabad6a
7 changed files with 162 additions and 8 deletions

View File

@@ -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.