|
4 | 4 | # RUN: llvm-mc -filetype=obj -triple=loongarch64 -mattr=+relax c.s -o c.64.o
|
5 | 5 | # RUN: ld.lld -shared -soname=c.64.so c.64.o -o c.64.so
|
6 | 6 |
|
7 |
| -## Test the TLSDESC relaxation. Also check --emit-relocs. |
8 |
| -# RUN: ld.lld -shared --emit-relocs -z now a.64.o c.64.o -o a.64.so |
| 7 | +## Test the TLSDESC relaxation. |
| 8 | +# RUN: ld.lld -shared -z now a.64.o c.64.o -o a.64.so |
9 | 9 | # RUN: llvm-readobj -r -x .got a.64.so | FileCheck --check-prefix=GD64-RELA %s
|
10 | 10 | # RUN: llvm-objdump --no-show-raw-insn -dr -h a.64.so | FileCheck %s --check-prefix=GD64
|
11 | 11 |
|
12 | 12 | ## FIXME: The transition frome TLSDESC to IE/LE has not yet been implemented.
|
13 | 13 | ## Keep the dynamic relocations and hand them over to dynamic linker.
|
14 | 14 |
|
15 |
| -# RUN: ld.lld -e 0 -z now --emit-relocs a.64.o c.64.o -o a.64.le |
| 15 | +# RUN: ld.lld -e 0 -z now a.64.o c.64.o -o a.64.le |
16 | 16 | # RUN: llvm-readobj -r -x .got a.64.le | FileCheck --check-prefix=LE64-RELA %s
|
17 |
| -# RUN: llvm-objdump --no-show-raw-insn -dr -h a.64.le | FileCheck %s --check-prefix=LE64 |
| 17 | +# RUN: llvm-objdump --no-show-raw-insn -d -h a.64.le | FileCheck %s --check-prefix=LE64 |
18 | 18 |
|
19 | 19 | # RUN: ld.lld -e 0 -z now --no-relax a.64.o c.64.o -o a.64.le.norelax
|
20 | 20 | # RUN: llvm-objdump --no-show-raw-insn -d -h a.64.le.norelax | FileCheck %s --check-prefix=LE64-NORELAX
|
21 | 21 |
|
22 |
| -# RUN: ld.lld -e 0 -z now --emit-relocs a.64.o c.64.so -o a.64.ie |
| 22 | +# RUN: ld.lld -e 0 -z now a.64.o c.64.so -o a.64.ie |
23 | 23 | # RUN: llvm-readobj -r -x .got a.64.ie | FileCheck --check-prefix=IE64-RELA %s
|
24 |
| -# RUN: llvm-objdump --no-show-raw-insn -dr -h a.64.ie | FileCheck %s --check-prefix=IE64 |
| 24 | +# RUN: llvm-objdump --no-show-raw-insn -d -h a.64.ie | FileCheck %s --check-prefix=IE64 |
25 | 25 |
|
26 | 26 | # RUN: ld.lld -e 0 -z now --no-relax a.64.o c.64.so -o a.64.ie.norelax
|
27 | 27 | # RUN: llvm-objdump --no-show-raw-insn -d -h a.64.ie.norelax | FileCheck %s --check-prefix=IE64-NORELAX
|
|
0 commit comments