1c9f5f47bSMaksim Panchenko## Check that llvm-bolt correctly identifies functions in .plt.sec 2c9f5f47bSMaksim Panchenko# RUN: yaml2obj %p/Inputs/plt-sec.yaml &> %t.exe 3*d648aa1bSMaksim Panchenko# RUN: llvm-bolt %t.exe --print-cfg --print-only=foo -o %t.out | FileCheck %s 4c9f5f47bSMaksim Panchenko 589a2e160SMaksim Panchenko## Check that llvm-bolt correctly identifies functions in .plt.got that has 689a2e160SMaksim Panchenko## endbr instruction at the start of its entries. 789a2e160SMaksim Panchenko# RUN: yaml2obj %p/Inputs/plt-got-sec.yaml &> %t.exe 8*d648aa1bSMaksim Panchenko# RUN: llvm-bolt %t.exe --print-cfg --print-only=foo -o %t.out | FileCheck %s 989a2e160SMaksim Panchenko 10c9f5f47bSMaksim Panchenko## The only call instruction in function foo() should be a call to PLT. 11c9f5f47bSMaksim PanchenkoCHECK: callq puts@PLT 12