diff options
author | Caroline Tice <cmtice@google.com> | 2021-05-23 16:01:32 -0700 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-05-24 18:30:10 +0000 |
commit | ffd95a10c126e65c35703258493aed0279a0cdff (patch) | |
tree | b6e7ed986e3f55a2d950b5c1254546692b0c2670 /compiler-test.sh | |
parent | 51a2a9a0b172bda42782377599240aab1867be42 (diff) | |
download | toolchain-utils-ffd95a10c126e65c35703258493aed0279a0cdff.tar.gz |
toolchain-utils: Remove uses of "readelf --debug-dump=info"
Now that we have switched to DWARF v5, using
'readelf --debug-dump=info' no longer works. This CL replaces such
uses with llvm-dwarfdump instead.
BUG=b:186027147
TEST=Verified manually that the commands are equivalent.
Change-Id: Ib9ced19aad729c6e24bf5b0714b53c761f55d868
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/toolchain-utils/+/2914600
Reviewed-by: Jordan R Abrahams <ajordanr@google.com>
Reviewed-by: Manoj Gupta <manojgupta@chromium.org>
Tested-by: Caroline Tice <cmtice@chromium.org>
Auto-Submit: Caroline Tice <cmtice@chromium.org>
Commit-Queue: Manoj Gupta <manojgupta@chromium.org>
Diffstat (limited to 'compiler-test.sh')
-rwxr-xr-x | compiler-test.sh | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/compiler-test.sh b/compiler-test.sh index 8083e2d2..fe552a51 100755 --- a/compiler-test.sh +++ b/compiler-test.sh @@ -10,9 +10,6 @@ # each compiler. It writes out these statistics when it is done. # # For a locally-built ChromeOS image, the debug directory is usually: -# ${chromeos_root}/chroot/build/${board}/usr/lib/debug (from outside -# chroot) -# or # /build/${board}/usr/lib/debug (from inside chroot) # # For a buildbot-built image you can usually download the debug tree @@ -44,7 +41,7 @@ fi cd ${DEBUG_TREE} for f in `find . -name "*.debug" -type f` ; do - at_producer=`readelf --debug-dump=info $f | head -25 | grep AT_producer `; + at_producer=`llvm-dwarfdump $f | head -25 | grep AT_producer `; if echo ${at_producer} | grep -q 'GNU C' ; then ((gcc_count++)) elif echo ${at_producer} | grep -q 'clang'; then |