2021-07-01 05:41:41 +08:00
|
|
|
## 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
|
|
|
|
|
2021-07-14 16:35:34 +08:00
|
|
|
## 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
|
|
|
|
|
2021-07-01 05:41:41 +08:00
|
|
|
## The only call instruction in function foo() should be a call to PLT.
|
|
|
|
CHECK: callq puts@PLT
|