[ELF] Make SyntheticSection parameter order match InputSection
[llvm-project.git] / lld / test / ELF / i386-pc8-pc16-addend.s
blobf71eba27ba17f1c4aecdd331c3b75f379fb29dff
1 # REQUIRES: x86
2 # RUN: llvm-mc -filetype=obj -triple=i386-pc-linux-gnu %s -o %t1.o
4 # RUN: ld.lld %t1.o -o %t.out
5 # RUN: llvm-objdump -s -t %t.out | FileCheck %s
6 # CHECK: SYMBOL TABLE:
7 # CHECK: 004010b7 l .und
8 # CHECK: Contents of section .text:
9 # CHECK-NEXT: 4010b4 020000
10 ## 0x4010b7 - 0x4010b4 + addend(-1) = 0x02
11 ## 0x4010b7 - 0x4010b5 + addend(-2) = 0x0000
13 .byte und-.-1
14 .short und-.-2
16 .section .und, "ax"
17 und: