From 361e0de6464cdb796b259179dbcb31cfa583858a Mon Sep 17 00:00:00 2001 From: searlmc1 Date: Tue, 1 Nov 2022 22:14:04 -0700 Subject: [PATCH] Use llvm-readelf rather than readelf (#2941) --- bin/hipcc.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/hipcc.pl b/bin/hipcc.pl index 606727f4cd..48ed8e1871 100755 --- a/bin/hipcc.pl +++ b/bin/hipcc.pl @@ -488,7 +488,7 @@ foreach $arg (@ARGV) my $fileType = `file $obj`; my $isObj = ($fileType =~ m/ELF/ or $fileType =~ m/COFF/); if ($fileType =~ m/ELF/) { - my $sections = `readelf -e -W $obj`; + my $sections = `$HIP_CLANG_PATH/llvm-readelf -e -W $obj`; $isObj = !($sections =~ m/__CLANG_OFFLOAD_BUNDLE__/); } $allIsObj = ($allIsObj and $isObj);