summaryrefslogtreecommitdiffstats
path: root/lld/test/ELF/linkerscript/start-end.test
blob: ab7504dac2d43d07de7e1f995a891c5f0adb0c35 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
# REQUIRES: x86
# RUN: echo '.section .init_array, "aw"; .quad 0' \
# RUN:   | llvm-mc -filetype=obj -triple=x86_64-unknown-linux - -o %t.o
# RUN: ld.lld %t.o -script %s -o %t 2>&1

SECTIONS {
  .init_array : {
    __init_array_start = .;
    *(.init_array)
    __init_array_end = .;
  }
}
OpenPOWER on IntegriCloud