31 lines · plain
1# This test checks instrumentation of static binary on AArch64.2 3# REQUIRES: system-linux,bolt-runtime,target=aarch64{{.*}}4 5# RUN: llvm-mc -filetype=obj -triple aarch64-unknown-unknown %s -o %t.o6# RUN: %clang %cflags %t.o -o %t.exe -Wl,-q -static7# RUN: llvm-bolt -instrument -instrumentation-sleep-time=1 %t.exe \8# RUN: -o %t.instr 2>&1 | FileCheck %s9# RUN: llvm-objdump --disassemble-symbols=__bolt_fini_trampoline %t.instr -D \10# RUN: | FileCheck %s -check-prefix=CHECK-ASM11 12# CHECK: BOLT-INFO: output linked against instrumentation runtime library13# CHECK-ASM: <__bolt_fini_trampoline>:14# CHECK-ASM-NEXT: ret15 16 .text17 .align 418 .global _start19 .type _start, %function20_start:21 bl foo22 ret23 .size _start, .-_start24 25 .global foo26 .type foo, %function27foo:28 mov w0, wzr29 ret30 .size foo, .-foo31