dwarf-reader: read_corpus_from_elf: unconditionally load elf properties
authorMatthias Maennich <maennich@google.com>
Fri, 4 Oct 2019 15:27:07 +0000 (16:27 +0100)
committerDodji Seketeli <dodji@redhat.com>
Mon, 7 Oct 2019 09:05:38 +0000 (11:05 +0200)
commit5d040ec6cc8da95e206f043bb5924aa7103cd185
treeaae1b3d50fc12a5b71dcf8913a7eb18ffe7cc4e8
parent5b9f5efab2910641a9eefe3bcab39ad121bea5e8
dwarf-reader: read_corpus_from_elf: unconditionally load elf properties

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>
src/abg-dwarf-reader.cc