File tree 3 files changed +9
-9
lines changed
3 files changed +9
-9
lines changed Original file line number Diff line number Diff line change 2
2
# RUN: rm -rf %t && split-file %s %t && cd %t
3
3
# RUN: llvm-mc -filetype=obj -triple=loongarch64 -mattr=+relax a.s -o a.o
4
4
5
- # RUN: ld.lld -T lds a.o -o a
5
+ # RUN: ld.lld --relax - T lds a.o -o a
6
6
# RUN: llvm-objdump -d --no-show-raw-insn a | FileCheck %s --check-prefixes=RELAX,RELAX-MID
7
7
8
8
## Unsure whether this needs a diagnostic. GNU ld allows this.
9
- # RUN: ld.lld -T lds -pie a.o -o a.pie
9
+ # RUN: ld.lld --relax - T lds -pie a.o -o a.pie
10
10
# RUN: llvm-objdump -d --no-show-raw-insn a.pie | FileCheck %s --check-prefixes=RELAX,RELAX-MID
11
11
12
- # RUN: ld.lld -T lds -pie -z notext -z ifunc-noplt a.o -o a.ifunc-noplt
12
+ # RUN: ld.lld --relax - T lds -pie -z notext -z ifunc-noplt a.o -o a.ifunc-noplt
13
13
# RUN: llvm-objdump -d --no-show-raw-insn a.ifunc-noplt | FileCheck %s --check-prefixes=RELAX,NORELAX-MID
14
14
15
15
# RELAX-LABEL: <_start>:
Original file line number Diff line number Diff line change 4
4
5
5
# RUN: llvm-mc -filetype=obj -triple=loongarch64 -mattr=+relax a.s -o a.64.o
6
6
# RUN: llvm-mc -filetype=obj -triple=loongarch64 -mattr=+relax b.s -o b.64.o
7
- # RUN: ld.lld -shared -soname=b.so b.64.o -o b.64.so
8
- # RUN: ld.lld -T lds a.64.o b.64.so -o 64
7
+ # RUN: ld.lld --relax - shared -soname=b.so b.64.o -o b.64.so
8
+ # RUN: ld.lld --relax - T lds a.64.o b.64.so -o 64
9
9
# RUN: llvm-objdump -td --no-show-raw-insn 64 | FileCheck %s --check-prefix=RELAX
10
10
11
11
## --no-relax disables relaxation.
12
- # RUN: ld.lld -T lds a.64.o b.64.so --no-relax -o 64.norelax
12
+ # RUN: ld.lld --no-relax - T lds a.64.o b.64.so -o 64.norelax
13
13
# RUN: llvm-objdump -td --no-show-raw-insn 64.norelax | FileCheck %s --check-prefix=NORELAX
14
14
15
15
# RELAX: {{0*}}00010000 g .text {{0*}}0000001c _start
Original file line number Diff line number Diff line change 3
3
## Call36 and tail36 need LA64 basic integer, so they donot have 32-bit version.
4
4
5
5
# RUN: llvm-mc --filetype=obj --triple=loongarch64 --mattr=+relax %s -o %t.64.o
6
- # RUN: ld.lld -Ttext=0x10000 --emit-relocs %t.64.o -o %t.64
6
+ # RUN: ld.lld --relax - Ttext=0x10000 --emit-relocs %t.64.o -o %t.64
7
7
# RUN: llvm-objdump -dr %t.64 | FileCheck %s --check-prefix=RELAX
8
8
9
9
## -r should keep original relocations.
10
- # RUN: ld.lld -r %t.64.o -o %t.64.r
10
+ # RUN: ld.lld --relax - r %t.64.o -o %t.64.r
11
11
# RUN: llvm-objdump -dr %t.64.r | FileCheck %s --check-prefix=CHECKR
12
12
13
13
## --no-relax should keep original relocations.
14
- # RUN: ld.lld -Ttext=0x10000 --emit-relocs --no-relax %t.64.o -o %t.64.norelax
14
+ # RUN: ld.lld --no-relax - Ttext=0x10000 --emit-relocs %t.64.o -o %t.64.norelax
15
15
# RUN: llvm-objdump -dr %t.64.norelax | FileCheck %s --check-prefix=NORELAX
16
16
17
17
# RELAX: 00010000 <_start>:
You can’t perform that action at this time.
0 commit comments