diff options
author | Cary Coutant <ccoutant@google.com> | 2010-06-10 17:20:27 +0000 |
---|---|---|
committer | Cary Coutant <ccoutant@google.com> | 2010-06-10 17:20:27 +0000 |
commit | f3a2388fc96c63c0233cdc3449ea61cf36e4975b (patch) | |
tree | d073b85cc10872fe8a3f3a93207f829932255370 /gold/symtab.h | |
parent | 7530c4809276954eebc6cfa9a41452d15da31bdb (diff) | |
download | gdb-f3a2388fc96c63c0233cdc3449ea61cf36e4975b.zip gdb-f3a2388fc96c63c0233cdc3449ea61cf36e4975b.tar.gz gdb-f3a2388fc96c63c0233cdc3449ea61cf36e4975b.tar.bz2 |
* object.cc (Sized_relobj::do_layout): Defer layout for reloc sections.
(Sized_relobj::do_layout_deferred_sections): Do layout for deferred
reloc sections.
* object.h (Sized_relobj::deferred_layout_relocs_): New data member.
PR 11683
* symtab.h (Symbol::is_placeholder): New member function.
* target-reloc.h (relocate_section): Check for placeholder symbols.
* testsuite/Makefile.am (plugin_test_8): New test.
(plugin_test_9): New test.
* testsuite/Makefile.in: Regenerate.
Diffstat (limited to 'gold/symtab.h')
-rw-r--r-- | gold/symtab.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/gold/symtab.h b/gold/symtab.h index 4a97461..7d75e06 100644 --- a/gold/symtab.h +++ b/gold/symtab.h @@ -459,6 +459,13 @@ class Symbol return this->source_ == FROM_OBJECT && this->object()->is_dynamic(); } + // Return whether this is a placeholder symbol from a plugin object. + bool + is_placeholder() const + { + return this->source_ == FROM_OBJECT && this->object()->pluginobj() != NULL; + } + // Return whether this is an undefined symbol. bool is_undefined() const |