Do not try to use ELF hash tables in demangling lookup mode

* src/abg-dwarf-reader.cc (lookup_symbol_from_elf): If in
	demangling mode, do not use ELF hash tables.

Signed-off-by: Dodji Seketeli <dodji@redhat.com>
This commit is contained in:
Dodji Seketeli 2014-05-13 12:33:57 +02:00
parent 61df20d749
commit dd23240e4e

View File

@ -1045,9 +1045,13 @@ lookup_symbol_from_elf(Elf* elf_handle,
vector<elf_symbol>& syms_found)
{
size_t hash_table_index = 0, symbol_table_index = 0;
hash_table_kind ht_kind = find_hash_table_section_index(elf_handle,
hash_table_index,
symbol_table_index);
hash_table_kind ht_kind = NO_HASH_TABLE_KIND;
if (!demangle)
ht_kind = find_hash_table_section_index(elf_handle,
hash_table_index,
symbol_table_index);
if (ht_kind == NO_HASH_TABLE_KIND)
{
if (!find_symbol_table_section_index(elf_handle, symbol_table_index))