Skip to content

Commit b2f11e3

Browse files
committed
Remove --emit-relocs in loongarch-relax-tlsdesc.s
llvm-objdump -dr cannot print the relocations, however objudmp works well. It also occurs for RISCV.
1 parent 576773c commit b2f11e3

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

lld/test/ELF/loongarch-relax-tlsdesc.s

+6-6
Original file line numberDiff line numberDiff line change
@@ -4,24 +4,24 @@
44
# RUN: llvm-mc -filetype=obj -triple=loongarch64 -mattr=+relax c.s -o c.64.o
55
# RUN: ld.lld -shared -soname=c.64.so c.64.o -o c.64.so
66

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
99
# RUN: llvm-readobj -r -x .got a.64.so | FileCheck --check-prefix=GD64-RELA %s
1010
# RUN: llvm-objdump --no-show-raw-insn -dr -h a.64.so | FileCheck %s --check-prefix=GD64
1111

1212
## FIXME: The transition frome TLSDESC to IE/LE has not yet been implemented.
1313
## Keep the dynamic relocations and hand them over to dynamic linker.
1414

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
1616
# 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
1818

1919
# RUN: ld.lld -e 0 -z now --no-relax a.64.o c.64.o -o a.64.le.norelax
2020
# RUN: llvm-objdump --no-show-raw-insn -d -h a.64.le.norelax | FileCheck %s --check-prefix=LE64-NORELAX
2121

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
2323
# 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
2525

2626
# RUN: ld.lld -e 0 -z now --no-relax a.64.o c.64.so -o a.64.ie.norelax
2727
# RUN: llvm-objdump --no-show-raw-insn -d -h a.64.ie.norelax | FileCheck %s --check-prefix=IE64-NORELAX

0 commit comments

Comments
 (0)