[llvm] [BOLT][test] Fix 'veneer-lld-abs' tesdt execution on Windows host. (PR #155525)
Vladimir Vereschaka via llvm-commits
llvm-commits at lists.llvm.org
Tue Aug 26 17:07:12 PDT 2025
https://github.com/vvereschaka created https://github.com/llvm/llvm-project/pull/155525
The `\$d` escaping sequence is not working properly on the Windows host. Replacing it with `'$d'` fixes the problem and works fine on both Windows and Linux hosts.
>From 4ee9796b962a9543cfdbec6477dd8633c1dcb4ad Mon Sep 17 00:00:00 2001
From: Vladimir Vereschaka <vvereschaka at accesssoftek.com>
Date: Tue, 26 Aug 2025 17:00:45 -0700
Subject: [PATCH] [BOLT][test] Fix 'veneer-lld-abs' tesdt execution on Windows
host.
The `\$d` escaping sequence is not working properly on the Windows host.
Replacing it with `'$d'` fixes the problem and works fine on both Windows
and Linux hosts.
---
bolt/test/AArch64/veneer-lld-abs.s | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/bolt/test/AArch64/veneer-lld-abs.s b/bolt/test/AArch64/veneer-lld-abs.s
index b22301db66c54..77d6f0ce2ddc8 100644
--- a/bolt/test/AArch64/veneer-lld-abs.s
+++ b/bolt/test/AArch64/veneer-lld-abs.s
@@ -12,7 +12,7 @@
## Occasionally, we see the linker not generating $d symbols for long veneers
## causing BOLT to fail veneer elimination.
-# RUN: llvm-objcopy --remove-symbol-prefix=\$d %t.exe %t.no-marker.exe
+# RUN: llvm-objcopy --remove-symbol-prefix='$d' %t.exe %t.no-marker.exe
# RUN: llvm-bolt %t.no-marker.exe -o %t.no-marker.bolt \
# RUN: 2>&1 | FileCheck %s --check-prefix=CHECK-BOLT
# RUN: llvm-objdump -d -j .text %t.no-marker.bolt | \
More information about the llvm-commits
mailing list