xref: /llvm-project/lld/test/ELF/linkerscript/start-end.test (revision f95e7c6f7a143e08408f39865562b7e8ac54cff3)
1# REQUIRES: x86
2# RUN: echo '.section .init_array, "aw"; .quad 0' \
3# RUN:   | llvm-mc -filetype=obj -triple=x86_64-unknown-linux - -o %t.o
4# RUN: ld.lld %t.o -script %s -o %t 2>&1
5
6SECTIONS {
7  .init_array : {
8    __init_array_start = .;
9    *(.init_array)
10    __init_array_end = .;
11  }
12}
13