From: Joel Rosdahl Date: Tue, 1 Sep 2020 14:51:32 +0000 (+0200) Subject: Fix debug_prefix_map failure with old objdump versions X-Git-Tag: v3.7.12~7 X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=3a7257ee23ad7985d18e459b6dbb6990b038df17;p=thirdparty%2Fccache.git Fix debug_prefix_map failure with old objdump versions “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. --- diff --git a/test/suites/debug_prefix_map.bash b/test/suites/debug_prefix_map.bash index d00e65476..3cff72092 100644 --- a/test/suites/debug_prefix_map.bash +++ b/test/suites/debug_prefix_map.bash @@ -23,10 +23,8 @@ EOF objdump_cmd() { if $HOST_OS_APPLE; then xcrun dwarfdump -r0 $1 - elif $HOST_OS_FREEBSD; then - objdump -W $1 else - objdump -g $1 + objdump -W $1 fi }