1# REQUIRES: x86 2# RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t1.o 3# RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %p/Inputs/shared.s -o %t2.o 4# RUN: ld.lld -shared %t2.o -o %t2.so 5 6# RUN: echo "SECTIONS { }" > %t.script 7# RUN: ld.lld %t1.o %t2.so -o %t 8# RUN: llvm-readobj -dynamic-table %t | FileCheck %s 9 10# CHECK: DynamicSection [ 11# CHECK-NEXT: Tag Type Name/Value 12# CHECK: 0x0000000000000021 PREINIT_ARRAYSZ 9 (bytes) 13# CHECK: 0x000000000000001B INIT_ARRAYSZ 8 (bytes) 14# CHECK: 0x000000000000001C FINI_ARRAYSZ 10 (bytes) 15 16.globl _start 17_start: 18 19.section .init_array,"aw",@init_array 20 .quad 0 21 22.section .preinit_array,"aw",@preinit_array 23 .quad 0 24 .byte 0 25 26.section .fini_array,"aw",@fini_array 27 .quad 0 28 .short 0 29