When loading the corpus from elf while specifying a whitelist, we might
be able to ignore the symbol table. In any case we have to load the elf
properties into the context, such as the binary's architecture.
Otherwise they are missing from the internal / xml representation.
Previously, elf properties were not loaded when a whitelist was
specified. Fix that.
* src/abg-dwarf-reader.cc (read_corpus_from_elf):
unconditionally load elf properties into context
Signed-off-by: Matthias Maennich <maennich@google.com>
status |= STATUS_ALT_DEBUG_INFO_NOT_FOUND;
}
+ ctxt.load_elf_properties(); // DT_SONAME, DT_NEEDED, architecture
+
if (!get_ignore_symbol_table(ctxt))
{
- ctxt.load_elf_properties();
// Read the symbols for publicly defined decls
if (!ctxt.load_symbol_maps())
status |= STATUS_NO_SYMBOLS_FOUND;