brintos

brintos / llvm-project-archived public Read only

0
0
Text · 453 B · 25da99b Raw
11 lines · plain
1// This test checks that BOLT creates entry points from sources2// that use indirect goto.3 4RUN: %clang %cflags -pie %S/Inputs/indirect_goto.c -o %t.exe -Wl,-q5RUN: llvm-bolt %t.exe -o %t.bolt --print-cfg | FileCheck --check-prefix=CHECK-PIE %s6 7// Check that BOLT registers extra entry points for dynamic relocations with PIE.8CHECK-PIE: Binary Function "main" after building cfg {9CHECK-PIE: IsMultiEntry: 110CHECK-PIE: Secondary Entry Points : {{.*}}11