1 # This test checks instrumentation of static binary on AArch64.
3 # REQUIRES: system-linux,bolt-runtime,target=aarch64{{.*}}
5 # RUN: llvm-mc -filetype=obj -triple aarch64-unknown-unknown %s -o %t.o
6 # RUN: %clang %cflags %t.o -o %t.exe -Wl,-q -static
7 # RUN: llvm-bolt -instrument -instrumentation-sleep-time=1 %t.exe \
8 # RUN: -o %t.instr 2>&1 | FileCheck %s
9 # RUN: llvm-objdump --disassemble-symbols=__bolt_fini_trampoline %t.instr -D \
10 # RUN: | FileCheck %s -check-prefix=CHECK-ASM
12 # CHECK: BOLT-INFO: output linked against instrumentation runtime library
13 # CHECK-ASM: <__bolt_fini_trampoline>:
19 .type _start, %function
23 .size _start, .-_start