readelf: Only lookup files and show errors in attr_callback when not silent.
authorMark Wielaard <mark@klomp.org>
Fri, 13 Apr 2018 12:56:48 +0000 (14:56 +0200)
committerMark Wielaard <mark@klomp.org>
Fri, 13 Apr 2018 13:06:16 +0000 (15:06 +0200)
commiteaccd7870874d8a9821e298ceaabf492490b3fa7
tree9ac916b164ff2c05b05516a8ec5f7042ce08799c
parentf881459ffc95b6fad51aa055a158ee14814073aa
readelf: Only lookup files and show errors in attr_callback when not silent.

We recently added a couple more sanity checks and show an error when
attributes that represent files cannot be resolved. We should only do
this when the attr_callback should print the attribute information.
When not (for example when not showing the .debug_info section, but
only collecting information about the CUs containing pointers into
other sections) we don't need to lookup the file names, nor print
the errors/warnings.

Signed-off-by: Mark Wielaard <mark@klomp.org>
src/ChangeLog
src/readelf.c