[ELF] Make SyntheticSection parameter order match InputSection
[llvm-project.git] / lld / test / ELF / init-fini-progbits.s
blob79d1c90b87662602d1f5849badce167d05c099bb
1 // REQUIRES: x86
3 // RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t
4 // RUN: ld.lld %t -o %t.exe
5 // RUN: llvm-readobj --sections %t.exe | FileCheck %s
7 // CHECK: Name: .init_array
8 // CHECK-NEXT: Type: SHT_PROGBITS
9 // CHECK: Name: .fini_array
10 // CHECK-NEXT: Type: SHT_PROGBITS
12 .globl _start
13 _start:
14 nop
16 .section .init_array.100, "aw", @progbits
17 .byte 0
18 .section .fini_array.100, "aw", @progbits
19 .byte 0