Skip to content

Commit 50a7511

Browse files
[BOLT][AArch64] Fix PREL Relocs on RHEL8 (#144505)
1 parent a9a71b6 commit 50a7511

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

bolt/test/AArch64/r_aarch64_prelxx.s

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
// REQUIRES: system-linux
66

77
// RUN: %clang %cflags -nostartfiles -nostdlib %s -o %t.exe -mlittle-endian \
8-
// RUN: -Wl,-q -Wl,-z,max-page-size=4
8+
// RUN: -Wl,-q -Wl,-z,max-page-size=4 -Wl,--no-relax
99
// RUN: llvm-readelf -Wa %t.exe | FileCheck %s -check-prefix=CHECKPREL
1010

1111
// CHECKPREL: R_AARCH64_PREL16 {{.*}} .dummy + 0
@@ -36,9 +36,9 @@
3636
.type _start, %function
3737
_start:
3838
adrp x0, datatable
39-
add x0, x0, :lo12:datable
39+
add x0, x0, :lo12:datatable
4040
mov x0, #0
41-
ret
41+
ret
4242

4343
.section .dummy, "a", @progbits
4444
dummy:

0 commit comments

Comments
 (0)