xref: /llvm-project/bolt/test/AArch64/plt-gnu-ld.test (revision d648aa1b8e937de1648524e1f1016b53b29ba2a4)
1// This test checks that the PLT symbols are properly recognized
2// by the BOLT tool.
3// The test is using bfd linker, since it may add versioning string
4// to the symbol name e.g. memcpy@@GLIBC_2.17
5
6// RUN: yaml2obj %p/Inputs/plt-gnu-ld.yaml &> %t.exe
7// RUN: llvm-bolt %t.exe -o %t.bolt.exe --use-old-text=0 --lite=0 \
8// RUN:   --print-cfg --print-only=main | FileCheck %s
9
10// CHECK: memcpy@PLT
11// CHECK: memset@PLT
12// CHECK: printf@PLT
13