Welcome to mirror list, hosted at ThFree Co, Russian Federation.

plt-lld.test « AArch64 « test « bolt - github.com/llvm/llvm-project.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 0a86a9ef9819ea0866acfb34841ff7f91b1e9398 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// This test checks that the PLT symbols are properly recognized
// by the BOLT tool.

// RUN: %clang %cflags %p/../Inputs/stub.c -fuse-ld=lld -fPIC -pie -shared \
// RUN:   -o %t.so
// RUN: %clang %cflags %p/../Inputs/plt.c -fuse-ld=lld \
// RUN:    -o %t.lld.exe -Wl,-q %t.so
// RUN: llvm-bolt %t.lld.exe -o %t.lld.bolt.exe -use-old-text=0 -lite=0 \
// RUN:   -print-cfg -print-only=main | FileCheck %s

// CHECK: memcpy@PLT
// CHECK: memset@PLT
// CHECK: printf@PLT