xref: /llvm-project/bolt/test/runtime/plt-gnu-ld.test (revision d648aa1b8e937de1648524e1f1016b53b29ba2a4)
1// This test checks that the pointers to PLT are properly updated.
2// The test is using bfd linker, since it may add versioning string
3// to the symbol name e.g. memcpy@@GLIBC_2.17
4
5// REQUIRES: gnu_ld
6
7// RUN: %clang %cflags %p/../Inputs/plt.c -fuse-ld=bfd \
8// RUN:    -o %t.bfd.exe -Wl,-q
9// RUN: llvm-bolt %t.bfd.exe -o %t.bfd.bolt.exe --use-old-text=0 --lite=0
10// RUN: %t.bfd.bolt.exe | FileCheck %s
11
12// CHECK: Test completed
13