* symtab.cc (add_from_pluginobj): Pass correct value for is_ordinary.

* testsuite/Makefile.am (plugin_test_5): New test case.
	* testsuite/Makefile.in: Regenerate.
This commit is contained in:
Cary Coutant
2009-10-28 00:32:12 +00:00
parent 853f94f653
commit 2499805399
4 changed files with 66 additions and 16 deletions

View File

@@ -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);