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
29 lines
531 B
ArmAsm
29 lines
531 B
ArmAsm
# This reproduces issue 177 from our github repo
|
|
# AARCH64_MOVW_UABS_G* relocations handling
|
|
|
|
# REQUIRES: system-linux
|
|
|
|
# RUN: %clang %cflags -no-pie %s -o %t.exe -Wl,-q
|
|
# RUN: llvm-bolt %t.exe -o %t.bolt --use-old-text=0 --lite=0 --trap-old-code
|
|
# RUN: %t.bolt
|
|
|
|
.text
|
|
.align 4
|
|
.global test
|
|
.type test, %function
|
|
test:
|
|
mov x0, xzr
|
|
ret
|
|
.size test, .-test
|
|
|
|
.align 4
|
|
.global main
|
|
.type main, %function
|
|
main:
|
|
movz x0, #:abs_g3:test
|
|
movk x0, #:abs_g2_nc:test
|
|
movk x0, #:abs_g1_nc:test
|
|
movk x0, #:abs_g0_nc:test
|
|
br x0
|
|
.size main, .-main
|