xref: /llvm-project/lld/test/ELF/init-fini-progbits.s (revision 43753f8f9d6682c7e0295d82d8a6727041925be7)
1// REQUIRES: x86
2
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
6
7// CHECK:      Name: .init_array
8// CHECK-NEXT: Type: SHT_PROGBITS
9// CHECK:      Name: .fini_array
10// CHECK-NEXT: Type: SHT_PROGBITS
11
12.globl _start
13_start:
14  nop
15
16.section .init_array.100, "aw", @progbits
17  .byte 0
18.section .fini_array.100, "aw", @progbits
19  .byte 0
20