https://github.com/yingcong-wu updated https://github.com/llvm/llvm-project/pull/156383
>From b69df27e57cc0b0673960bc6802693df9fcc1e03 Mon Sep 17 00:00:00 2001 From: "Wu, Yingcong" <yingcong...@intel.com> Date: Tue, 2 Sep 2025 09:42:07 +0800 Subject: [PATCH 1/4] switch to llvm-objdump --- libunwind/test/eh_frame_fde_pc_range.pass.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libunwind/test/eh_frame_fde_pc_range.pass.cpp b/libunwind/test/eh_frame_fde_pc_range.pass.cpp index d8bcb3939913c..28f4ae1efed31 100644 --- a/libunwind/test/eh_frame_fde_pc_range.pass.cpp +++ b/libunwind/test/eh_frame_fde_pc_range.pass.cpp @@ -19,9 +19,9 @@ // XFAIL: msan // RUN: %{build} -// RUN: objcopy --dump-section .eh_frame_hdr=%t_ehf_hdr.bin %t.exe +// RUN: llvm-objcopy --dump-section .eh_frame_hdr=%t_ehf_hdr.bin %t.exe // RUN: echo -ne '\xFF' | dd of=%t_ehf_hdr.bin bs=1 seek=2 count=2 conv=notrunc status=none -// RUN: objcopy --update-section .eh_frame_hdr=%t_ehf_hdr.bin %t.exe +// RUN: llvm-objcopy --update-section .eh_frame_hdr=%t_ehf_hdr.bin %t.exe // RUN: %{exec} %t.exe // clang-format on >From b4a27dbed05d6f89264731d4a24b67b4849d29c5 Mon Sep 17 00:00:00 2001 From: "Wu, Yingcong" <yingcong...@intel.com> Date: Tue, 2 Sep 2025 10:03:46 +0800 Subject: [PATCH 2/4] change to unsupported --- libunwind/test/eh_frame_fde_pc_range.pass.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/libunwind/test/eh_frame_fde_pc_range.pass.cpp b/libunwind/test/eh_frame_fde_pc_range.pass.cpp index 28f4ae1efed31..82d45b308bece 100644 --- a/libunwind/test/eh_frame_fde_pc_range.pass.cpp +++ b/libunwind/test/eh_frame_fde_pc_range.pass.cpp @@ -15,13 +15,17 @@ // REQUIRES: linux +// UNSUPPORTED: target={{aarch64-.+linux.*}} +// aarch64-unknown-linux-gnu has a cross toolchain build(llvm-clang-win-x-aarch64) +// where objdump is not available. + // TODO: Figure out why this fails with Memory Sanitizer. // XFAIL: msan // RUN: %{build} -// RUN: llvm-objcopy --dump-section .eh_frame_hdr=%t_ehf_hdr.bin %t.exe +// RUN: objcopy --dump-section .eh_frame_hdr=%t_ehf_hdr.bin %t.exe // RUN: echo -ne '\xFF' | dd of=%t_ehf_hdr.bin bs=1 seek=2 count=2 conv=notrunc status=none -// RUN: llvm-objcopy --update-section .eh_frame_hdr=%t_ehf_hdr.bin %t.exe +// RUN: objcopy --update-section .eh_frame_hdr=%t_ehf_hdr.bin %t.exe // RUN: %{exec} %t.exe // clang-format on >From e16146a504bdf0cee22ba9dbdb652adc6818f79a Mon Sep 17 00:00:00 2001 From: "Wu, Yingcong" <yingcong...@intel.com> Date: Tue, 2 Sep 2025 10:45:08 +0800 Subject: [PATCH 3/4] add arm --- libunwind/test/eh_frame_fde_pc_range.pass.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libunwind/test/eh_frame_fde_pc_range.pass.cpp b/libunwind/test/eh_frame_fde_pc_range.pass.cpp index 82d45b308bece..cd11ec7f17157 100644 --- a/libunwind/test/eh_frame_fde_pc_range.pass.cpp +++ b/libunwind/test/eh_frame_fde_pc_range.pass.cpp @@ -15,7 +15,7 @@ // REQUIRES: linux -// UNSUPPORTED: target={{aarch64-.+linux.*}} +// UNSUPPORTED: target={{(aarch64|arm.*)-.+linux.*}} // aarch64-unknown-linux-gnu has a cross toolchain build(llvm-clang-win-x-aarch64) // where objdump is not available. >From fa1048598877cd88d7afd3c93468a7059ef55c6f Mon Sep 17 00:00:00 2001 From: "Wu, Yingcong" <yingcong...@intel.com> Date: Tue, 2 Sep 2025 13:26:20 +0800 Subject: [PATCH 4/4] switch to require x86 --- libunwind/test/eh_frame_fde_pc_range.pass.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/libunwind/test/eh_frame_fde_pc_range.pass.cpp b/libunwind/test/eh_frame_fde_pc_range.pass.cpp index cd11ec7f17157..39c8e8066264d 100644 --- a/libunwind/test/eh_frame_fde_pc_range.pass.cpp +++ b/libunwind/test/eh_frame_fde_pc_range.pass.cpp @@ -13,10 +13,8 @@ // clang-format off -// REQUIRES: linux - -// UNSUPPORTED: target={{(aarch64|arm.*)-.+linux.*}} -// aarch64-unknown-linux-gnu has a cross toolchain build(llvm-clang-win-x-aarch64) +// REQUIRES: target={{x86_64-.+-linux-gnu}} +// aarch64,arm have a cross toolchain build(llvm-clang-win-x-aarch64, etc) // where objdump is not available. // TODO: Figure out why this fails with Memory Sanitizer. _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits