[BOLT][AArch64] Fix PREL Relocs on RHEL8 (#144505)

This commit is contained in:
Paschalis Mpeis 2025-06-19 08:51:08 +01:00 committed by GitHub
parent a9a71b6d31
commit 50a7511138
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -5,7 +5,7 @@
// REQUIRES: system-linux
// RUN: %clang %cflags -nostartfiles -nostdlib %s -o %t.exe -mlittle-endian \
// RUN: -Wl,-q -Wl,-z,max-page-size=4
// RUN: -Wl,-q -Wl,-z,max-page-size=4 -Wl,--no-relax
// RUN: llvm-readelf -Wa %t.exe | FileCheck %s -check-prefix=CHECKPREL
// CHECKPREL: R_AARCH64_PREL16 {{.*}} .dummy + 0
@ -36,9 +36,9 @@
.type _start, %function
_start:
adrp x0, datatable
add x0, x0, :lo12:datable
add x0, x0, :lo12:datatable
mov x0, #0
ret
ret
.section .dummy, "a", @progbits
dummy: