33 lines · plain
1## This test checks that we ignore functions which add an entry point that2## is in a constant island.3 4# RUN: llvm-mc -filetype=obj -triple aarch64-unknown-unknown %s -o %t.o5# RUN: %clang %cflags %t.o -pie -Wl,-q -o %t.exe6 7## Check when the caller is successfully disassembled.8# RUN: llvm-bolt %t.exe -o %t.bolt 2>&1 | FileCheck %s9 10## Skip caller to check the identical warning is triggered from ScanExternalRefs().11# RUN: llvm-bolt %t.exe -o %t.bolt -skip-funcs=caller 2>&1 | FileCheck %s12 13# CHECK: BOLT-WARNING: ignoring entry point at address 0x{{[0-9a-f]+}} in constant island of function func14 15.globl func16.type func, %function17func:18 b .Lafter_constant19 20.type constant_island, %object21constant_island:22 .xword 0xabcdef23 24.Lafter_constant:25 ret26 .size func, .-func27 28.globl caller29.type caller, %function30caller:31 bl constant_island32 ret33