xref: /llvm-project/bolt/test/runtime/plt-gnu-ld.test (revision d648aa1b8e937de1648524e1f1016b53b29ba2a4)
14956e0e1SVladislav Khmelevsky// This test checks that the pointers to PLT are properly updated.
24956e0e1SVladislav Khmelevsky// The test is using bfd linker, since it may add versioning string
34956e0e1SVladislav Khmelevsky// to the symbol name e.g. memcpy@@GLIBC_2.17
44956e0e1SVladislav Khmelevsky
54956e0e1SVladislav Khmelevsky// REQUIRES: gnu_ld
64956e0e1SVladislav Khmelevsky
74956e0e1SVladislav Khmelevsky// RUN: %clang %cflags %p/../Inputs/plt.c -fuse-ld=bfd \
84956e0e1SVladislav Khmelevsky// RUN:    -o %t.bfd.exe -Wl,-q
9*d648aa1bSMaksim Panchenko// RUN: llvm-bolt %t.bfd.exe -o %t.bfd.bolt.exe --use-old-text=0 --lite=0
104956e0e1SVladislav Khmelevsky// RUN: %t.bfd.bolt.exe | FileCheck %s
114956e0e1SVladislav Khmelevsky
124956e0e1SVladislav Khmelevsky// CHECK: Test completed
13