1 # This test checks patch entries functionality
3 # REQUIRES: system-linux
5 # RUN: llvm-mc -filetype=obj -triple aarch64-unknown-unknown \
7 # RUN: %clang %cflags -pie %t.o -o %t.exe -nostdlib -Wl,-q
8 # RUN: llvm-bolt %t.exe -o %t.bolt --use-old-text=0 --lite=0 --skip-funcs=_start
9 # RUN: llvm-objdump -dz %t.bolt | FileCheck %s
11 # CHECK: <pathedEntries.org.0>:
12 # CHECK-NEXT: adrp x16, 0x[[#%x,ADRP:]]
13 # CHECK-NEXT: add x16, x16, #0x[[#%x,ADD:]]
16 # CHECK: [[#ADRP + ADD]] <pathedEntries>:
17 # CHECK-NEXT: [[#ADRP + ADD]]: {{.*}} ret
22 .type pathedEntries, %function
28 .size pathedEntries, .-pathedEntries
31 .type _start, %function
36 .size _start, .-_start