Replace a single dash with a double dash for options that have more than a single letter. llvm-bolt-wrapper.py has special treatment for output options such as "-o" and "-w" causing issues when a single dash is used, e.g. for "-write-dwp". The wrapper can be fixed as well, but using a double dash has other advantages as well. Reviewed By: rafauler Differential Revision: https://reviews.llvm.org/D127538
17 lines
560 B
Plaintext
17 lines
560 B
Plaintext
// This test checks that the pointers to PLT are properly updated.
|
|
// The test is using lld linker.
|
|
|
|
// Non-PIE:
|
|
RUN: %clang %cflags -no-pie %p/../Inputs/plt.c -fuse-ld=lld \
|
|
RUN: -o %t.lld.exe -Wl,-q
|
|
RUN: llvm-bolt %t.lld.exe -o %t.lld.bolt.exe --use-old-text=0 --lite=0
|
|
RUN: %t.lld.bolt.exe | FileCheck %s
|
|
|
|
// PIE:
|
|
RUN: %clang %cflags -fPIC -pie %p/../Inputs/plt.c -fuse-ld=lld \
|
|
RUN: -o %t.lld.pie.exe -Wl,-q
|
|
RUN: llvm-bolt %t.lld.pie.exe -o %t.lld.bolt.pie.exe --use-old-text=0 --lite=0
|
|
RUN: %t.lld.bolt.pie.exe | FileCheck %s
|
|
|
|
CHECK: Test completed
|