“objdump -g” does not list debug info like the “Multiple
-fdebug-prefix-map” test expects when using objdump 2.20, e.g. on CentOS
6. “objdump -W” does however work, and it seems to work for object files
with compressed .debug_str section as well.
Related to issue #639.
(cherry picked from commit
3a7257ee23ad7985d18e459b6dbb6990b038df17)
objdump_cmd() {
if $HOST_OS_APPLE; then
xcrun dwarfdump -r 0 $1
- elif $HOST_OS_FREEBSD; then
- objdump -W $1
elif $HOST_OS_WINDOWS || $HOST_OS_CYGWIN; then
strings $1 # for some reason objdump only shows the basename of the file, so fall back to brute force and ignorance
else
- objdump -g $1
+ objdump -W $1
fi
}