]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
Fix debug_prefix_map failure with old objdump versions
authorJoel Rosdahl <joel@rosdahl.net>
Tue, 1 Sep 2020 14:51:32 +0000 (16:51 +0200)
committerJoel Rosdahl <joel@rosdahl.net>
Tue, 1 Sep 2020 14:51:32 +0000 (16:51 +0200)
“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.

test/suites/debug_prefix_map.bash

index d00e654767c14b233a4cb53632af21d4fac9a7bd..3cff720929ca8f841b0f9ee756d4d373409309b2 100644 (file)
@@ -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
 }