2022-04-04 00:11:31 +08:00
|
|
|
// This test checks that the PLT symbols are properly recognized
|
|
|
|
// by the BOLT tool.
|
|
|
|
// The test is using bfd linker, since it may add versioning string
|
|
|
|
// to the symbol name e.g. memcpy@@GLIBC_2.17
|
|
|
|
|
|
|
|
// RUN: yaml2obj %p/Inputs/plt-gnu-ld.yaml &> %t.exe
|
2022-06-11 05:10:58 +08:00
|
|
|
// RUN: llvm-bolt %t.exe -o %t.bolt.exe --use-old-text=0 --lite=0 \
|
|
|
|
// RUN: --print-cfg --print-only=main | FileCheck %s
|
2022-04-04 00:11:31 +08:00
|
|
|
|
|
|
|
// CHECK: memcpy@PLT
|
|
|
|
// CHECK: memset@PLT
|
|
|
|
// CHECK: printf@PLT
|