30 lines · plain
1# This test checks that the address stored in constant island2# is updated after llvm-bolt3 4# REQUIRES: system-linux5 6# RUN: llvm-mc -filetype=obj -triple aarch64-unknown-unknown \7# RUN: %s -o %t.o8# RUN: %clang %cflags -no-pie %t.o -o %t.exe -Wl,-q9# RUN: llvm-bolt %t.exe -o %t.bolt --use-old-text=0 --lite=0 --trap-old-code10# RUN: %t.bolt11 12 .text13 .align 414 .global test15 .type test, %function16test:17 mov x0, #018 ret19 .size test, .-test20 21 .global main22 .type main, %function23main:24 adr x0, CI25 ldr x0, [x0]26 br x027 .size main, .-main28CI:29 .xword test30