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
13 lines
441 B
Plaintext
13 lines
441 B
Plaintext
// This test checks that the PLT symbols are properly recognized
|
|
// by the BOLT tool.
|
|
// The test is using bfd linker, since it may add versioning string
|
|
// to the symbol name e.g. memcpy@@GLIBC_2.17
|
|
|
|
// RUN: yaml2obj %p/Inputs/plt-gnu-ld.yaml &> %t.exe
|
|
// RUN: llvm-bolt %t.exe -o %t.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
|