forked from OSchip/llvm-project
12 lines
548 B
Plaintext
12 lines
548 B
Plaintext
## 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
|