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: v4.0~144 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=4bc48ada3cf7cf21cf90a5bf19d540668c08310c;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. (cherry picked from commit 3a7257ee23ad7985d18e459b6dbb6990b038df17) --- diff --git a/test/run b/test/run index 4cd1578a5..fab05c365 100755 --- a/test/run +++ b/test/run @@ -126,12 +126,10 @@ file_size() { 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 }