Use llvm-readelf rather than readelf (#2941)

[ROCm/hip commit: 361e0de646]
Этот коммит содержится в:
searlmc1 authored and GitHub committed 2022-11-02 10:44:04 +05:30
1 родитель bd4b8d8b3e
Коммит 0e3113e570
1 file changed
+1 -1
+1 -1
Просмотреть файл
@@ -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);