bolt/deps/llvm-18.1.8/lld/test/ELF/linkerscript/start-end.test

13 lines
290 B
Text
Raw Normal View History

2025-02-14 19:21:04 +01:00
# 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 = .;
}
}