[ELF] Make SyntheticSection parameter order match InputSection
[llvm-project.git] / lld / test / ELF / riscv-reloc-plt32.s
blob8cbc2d3f442c066aef74957a1a2159bdcd44ba01
1 # REQUIRES: riscv
3 # RUN: llvm-mc -filetype=obj -triple=riscv64 %s -o %t.o
4 # RUN: llvm-mc -filetype=obj -triple=riscv64 %S/Inputs/abs256.s -o %t256.o
6 # RUN: ld.lld -z max-page-size=4096 %t.o %t256.o -o %t
7 # RUN: llvm-objdump -s --section=.data %t | FileCheck %s
9 # CHECK: Contents of section .data:
10 ## 12158: S = 0x100, A = 0, P = 0x12158
11 ## S + A - P = 0xfffedfa8
12 ## 1215c: S = 0x100, A = 1, P = 0x1215c
13 ## S + A - P = 0xfffedfa5
14 ## 12160: S = 0x100, A = -1, P = 0x12160
15 ## S + A - P = 0xfffedf9f
16 # CHECK-NEXT: 12158 a8dffeff a5dffeff 9fdffeff
18 .globl _start
19 _start:
20 .data
21 .word foo@PLT - .
22 .word foo@PLT - . + 1
23 .word foo@PLT - . - 1