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

github.com/llvm/llvm-project.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'bolt/test/AArch64/plt-lld.test')
-rw-r--r--bolt/test/AArch64/plt-lld.test13
1 files changed, 13 insertions, 0 deletions
diff --git a/bolt/test/AArch64/plt-lld.test b/bolt/test/AArch64/plt-lld.test
new file mode 100644
index 000000000000..0a86a9ef9819
--- /dev/null
+++ b/bolt/test/AArch64/plt-lld.test
@@ -0,0 +1,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