aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFangrui Song <i@maskray.me>2024-04-19 15:29:14 -0700
committerFangrui Song <i@maskray.me>2024-04-19 15:29:14 -0700
commitd9169ffaf7c01691644537d3443240748b107359 (patch)
tree897052cf84b4ea14b5ff8c7fdae99e4dfa66c5fa
parent4523a267829c807f3fc8fab8e5e9613985a51565 (diff)
downloadllvm-d9169ffaf7c01691644537d3443240748b107359.zip
llvm-d9169ffaf7c01691644537d3443240748b107359.tar.gz
llvm-d9169ffaf7c01691644537d3443240748b107359.tar.bz2
[BOLT,test] Update AArch64/constant_island_pie_update.s after llvm-readelf -r RELR change
-rw-r--r--bolt/test/AArch64/constant_island_pie_update.s8
1 files changed, 7 insertions, 1 deletions
diff --git a/bolt/test/AArch64/constant_island_pie_update.s b/bolt/test/AArch64/constant_island_pie_update.s
index 0ab67d0..313e103 100644
--- a/bolt/test/AArch64/constant_island_pie_update.s
+++ b/bolt/test/AArch64/constant_island_pie_update.s
@@ -18,7 +18,7 @@
# RUN: llvm-objdump -j .text -d --show-all-symbols %t.relr.bolt | FileCheck %s
# RUN: llvm-objdump -j .text -d %t.relr.bolt | \
# RUN: FileCheck %s --check-prefix=ADDENDCHECK
-# RUN: llvm-readelf -rsW %t.relr.bolt | FileCheck --check-prefix=ELFCHECK %s
+# RUN: llvm-readelf -rsW %t.relr.bolt | FileCheck --check-prefix=RELRELFCHECK %s
# RUN: llvm-readelf -SW %t.relr.bolt | FileCheck --check-prefix=RELRSZCHECK %s
// Check that the CI value was updated
@@ -51,6 +51,12 @@
# ELFCHECK-NEXT: {{.*}} R_AARCH64_RELATIVE
# ELFCHECK: {{.*}}[[#OFF]] {{.*}} $d
+# RELRELFCHECK: $d{{$}}
+# RELRELFCHECK-NEXT: $d + 0x8{{$}}
+# RELRELFCHECK-NEXT: $d + 0x18{{$}}
+# RELRELFCHECK-NEXT: mytextP
+# RELRELFCHECK-EMPTY:
+
// Check that .relr.dyn size is 2 bytes to ensure that last 3 relocations were
// encoded as a bitmap so the total section size for 3 relocations is 2 bytes.
# RELRSZCHECK: .relr.dyn RELR [[#%x,ADDR:]] [[#%x,OFF:]] {{0*}}10