aboutsummaryrefslogtreecommitdiff
path: root/gold/symtab.h
diff options
context:
space:
mode:
authorCary Coutant <ccoutant@google.com>2013-05-21 21:14:40 +0000
committerCary Coutant <ccoutant@google.com>2013-05-21 21:14:40 +0000
commit93acabad6a0ff499e4e18d44c41292ef48cde104 (patch)
treed55f28e87a4dbb111513e6eb08885faeaf941604 /gold/symtab.h
parent60e8b3fccd5e6748c420c7ae5d78917af26345fc (diff)
downloadgdb-93acabad6a0ff499e4e18d44c41292ef48cde104.zip
gdb-93acabad6a0ff499e4e18d44c41292ef48cde104.tar.gz
gdb-93acabad6a0ff499e4e18d44c41292ef48cde104.tar.bz2
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.
Diffstat (limited to 'gold/symtab.h')
-rw-r--r--gold/symtab.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/gold/symtab.h b/gold/symtab.h
index 689d99f..9299ea8 100644
--- a/gold/symtab.h
+++ b/gold/symtab.h
@@ -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.