forked from OSchip/llvm-project
11 lines
396 B
Plaintext
11 lines
396 B
Plaintext
# Check llvm-bolt processes binaries compiled from sources that use indirect goto.
|
|
REQUIRES: x86_64-linux
|
|
|
|
RUN: %clang %S/Inputs/indirect_goto.c -o %t -fpic -pie -Wl,-q
|
|
RUN: llvm-bolt %t -o %t.bolt -relocs=1 -print-cfg -print-only=main \
|
|
RUN: |& FileCheck %s
|
|
# The test fails as we don't update corresponding dynamic relocations.
|
|
RUN: not %t.bolt
|
|
|
|
CHECK: jmpq *%rax # UNKNOWN CONTROL FLOW
|