[ELF] Make SyntheticSection parameter order match InputSection
[llvm-project.git] / lld / test / ELF / riscv-reloc-copy.s
blob17a5902cc4733e2f60c650106d290642b1bb51b0
1 # REQUIRES: riscv
2 # RUN: llvm-mc -filetype=obj -triple=riscv32 %p/Inputs/relocation-copy.s -o %t1.o
3 # RUN: ld.lld -shared %t1.o -soname=t1.so -o %t1.so
4 # RUN: llvm-mc -filetype=obj -triple=riscv32 %s -o %t.o
5 # RUN: ld.lld %t.o %t1.so -o %t
6 # RUN: llvm-readobj -r %t | FileCheck --check-prefixes=REL,REL32 %s
7 # RUN: llvm-nm -S %t | FileCheck --check-prefix=NM32 %s
9 # RUN: llvm-mc -filetype=obj -triple=riscv64 %p/Inputs/relocation-copy.s -o %t1.o
10 # RUN: ld.lld -shared %t1.o -soname=t1.so -o %t1.so
11 # RUN: llvm-mc -filetype=obj -triple=riscv64 %s -o %t.o
12 # RUN: ld.lld %t.o %t1.so -o %t
13 # RUN: llvm-readobj -r %t | FileCheck --check-prefixes=REL,REL64 %s
14 # RUN: llvm-nm -S %t | FileCheck --check-prefix=NM64 %s
16 # REL: .rela.dyn {
17 # REL32-NEXT: 0x13210 R_RISCV_COPY x 0x0
18 # REL64-NEXT: 0x13360 R_RISCV_COPY x 0x0
19 # REL-NEXT: }
21 # NM32: 00013210 00000004 B x
22 # NM64: 0000000000013360 0000000000000004 B x
24 la a0, x