xref: /llvm-project/bolt/test/X86/plt-sec.test (revision d648aa1b8e937de1648524e1f1016b53b29ba2a4)
1## Check that llvm-bolt correctly identifies functions in .plt.sec
2# RUN: yaml2obj %p/Inputs/plt-sec.yaml &> %t.exe
3# RUN: llvm-bolt %t.exe --print-cfg --print-only=foo -o %t.out | FileCheck %s
4
5## Check that llvm-bolt correctly identifies functions in .plt.got that has
6## endbr instruction at the start of its entries.
7# RUN: yaml2obj %p/Inputs/plt-got-sec.yaml &> %t.exe
8# RUN: llvm-bolt %t.exe --print-cfg --print-only=foo -o %t.out | FileCheck %s
9
10## The only call instruction in function foo() should be a call to PLT.
11CHECK:  callq puts@PLT
12