blob: 6bff5f35138c072589e7408d8e272b77f11d34fe [file] [log] [blame]
## Check that llvm-bolt correctly identifies functions in .plt.sec
# RUN: yaml2obj %p/Inputs/plt-sec.yaml &> %t.exe
# RUN: llvm-bolt %t.exe --print-cfg --print-only=foo -o %t.out | FileCheck %s
## Check that llvm-bolt correctly identifies functions in .plt.got that has
## endbr instruction at the start of its entries.
# RUN: yaml2obj %p/Inputs/plt-got-sec.yaml &> %t.exe
# RUN: llvm-bolt %t.exe --print-cfg --print-only=foo -o %t.out | FileCheck %s
## The only call instruction in function foo() should be a call to PLT.
CHECK: callq puts@PLT