blob: 50bdc7125ea526b32366780b41babeb7ee4e955e [file] [log] [blame]
// This test checks that the pointers to PLT are properly updated.
// The test is using bfd linker, since it may add versioning string
// to the symbol name e.g. memcpy@@GLIBC_2.17
// REQUIRES: gnu_ld
// RUN: %clang %cflags %p/../Inputs/plt.c -fuse-ld=bfd \
// RUN: -o %t.bfd.exe -Wl,-q
// RUN: llvm-bolt %t.bfd.exe -o %t.bfd.bolt.exe --use-old-text=0 --lite=0
// RUN: %t.bfd.bolt.exe | FileCheck %s
// CHECK: Test completed