14 lines · plain
1## Verify that BOLT detects fixed destination of indirect jump for PIC2## case.3 4RUN: %clang %cflags -no-pie %S/Inputs/jump-table-fixed-ref-pic.s -Wl,-q -o %t5RUN: llvm-bolt %t --relocs -o %t.null -print-cfg 2>&1 | FileCheck %s6 7CHECK: BOLT-INFO: fixed PIC indirect branch detected in main {{.*}} the destination value is 0x[[#TGT:]]8CHECK: Binary Function "main" after building cfg9 10CHECK: movslq ".rodata/1"+8(%rip), %rax11CHECK-NEXT: leaq ".rodata/1"(%rip), %rdx12CHECK-NEXT: addq %rdx, %rax13CHECK-NEXT: jmpq *%rax # UNKNOWN CONTROL FLOW14