[ELF] Make SyntheticSection parameter order match InputSection
[llvm-project.git] / lld / test / ELF / emulation-msp430.s
blobc747889d798c1b8e302f517ede74ef4430d2e425
1 # REQUIRES: msp430
2 # RUN: llvm-mc -filetype=obj -triple=msp430 %s -o %t.o
3 # RUN: ld.lld %t.o -o %t1
4 # RUN: llvm-readobj --file-headers %t1 | FileCheck %s
5 # RUN: ld.lld -m msp430elf %t.o -o %t2
6 # RUN: cmp %t1 %t2
7 # RUN: echo 'OUTPUT_FORMAT(elf32-msp430)' > %t.lds
8 # RUN: ld.lld -T %t.lds %t.o -o %t3
9 # RUN: llvm-readobj --file-headers %t3 | FileCheck %s
11 # CHECK: ElfHeader {
12 # CHECK-NEXT: Ident {
13 # CHECK-NEXT: Magic: (7F 45 4C 46)
14 # CHECK-NEXT: Class: 32-bit (0x1)
15 # CHECK-NEXT: DataEncoding: LittleEndian (0x1)
16 # CHECK-NEXT: FileVersion: 1
17 # CHECK-NEXT: OS/ABI: Standalone (0xFF)
18 # CHECK-NEXT: ABIVersion: 0
19 # CHECK-NEXT: Unused: (00 00 00 00 00 00 00)
20 # CHECK-NEXT: }
21 # CHECK-NEXT: Type: Executable (0x2)
22 # CHECK-NEXT: Machine: EM_MSP430 (0x69)
23 # CHECK-NEXT: Version: 1
25 .globl _start
26 _start: