brintos

brintos / llvm-project-archived public Read only

0
0
Text · 548 B · 6bff5f3 Raw
12 lines · plain
1## Check that llvm-bolt correctly identifies functions in .plt.sec2# RUN: yaml2obj %p/Inputs/plt-sec.yaml &> %t.exe3# RUN: llvm-bolt %t.exe --print-cfg --print-only=foo -o %t.out | FileCheck %s4 5## Check that llvm-bolt correctly identifies functions in .plt.got that has6## endbr instruction at the start of its entries.7# RUN: yaml2obj %p/Inputs/plt-got-sec.yaml &> %t.exe8# RUN: llvm-bolt %t.exe --print-cfg --print-only=foo -o %t.out | FileCheck %s9 10## The only call instruction in function foo() should be a call to PLT.11CHECK:  callq puts@PLT12