aboutsummaryrefslogtreecommitdiff
path: root/gold/symtab.cc
diff options
context:
space:
mode:
authorCary Coutant <ccoutant@google.com>2009-10-28 00:32:12 +0000
committerCary Coutant <ccoutant@google.com>2009-10-28 00:32:12 +0000
commit2499805399b431a88cae733b292b04916e1295d6 (patch)
tree13e378dc902b8eff2a56b2d4335522f9c9940f41 /gold/symtab.cc
parent853f94f653160c2c3301b2acdb1c72b43e76e3a0 (diff)
downloadgdb-2499805399b431a88cae733b292b04916e1295d6.zip
gdb-2499805399b431a88cae733b292b04916e1295d6.tar.gz
gdb-2499805399b431a88cae733b292b04916e1295d6.tar.bz2
* symtab.cc (add_from_pluginobj): Pass correct value for is_ordinary.
* testsuite/Makefile.am (plugin_test_5): New test case. * testsuite/Makefile.in: Regenerate.
Diffstat (limited to 'gold/symtab.cc')
-rw-r--r--gold/symtab.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/gold/symtab.cc b/gold/symtab.cc
index 5dbab35..af27210 100644
--- a/gold/symtab.cc
+++ b/gold/symtab.cc
@@ -1202,6 +1202,7 @@ Symbol_table::add_from_pluginobj(
elfcpp::Sym<size, big_endian>* sym)
{
unsigned int st_shndx = sym->get_st_shndx();
+ bool is_ordinary = st_shndx < elfcpp::SHN_LORESERVE;
Stringpool::Key ver_key = 0;
bool def = false;
@@ -1245,7 +1246,7 @@ Symbol_table::add_from_pluginobj(
Sized_symbol<size>* res;
res = this->add_from_object(obj, name, name_key, ver, ver_key,
- def, *sym, st_shndx, true, st_shndx);
+ def, *sym, st_shndx, is_ordinary, st_shndx);
if (local)
this->force_local(res);