1 # This tests the functionality that lld is able to emit
2 # init_array/fini_array sections in the right order.
4 RUN: lld -flavor gnu -target x86_64-linux %p/Inputs/initfini.o \
5 RUN: --noinhibit-exec -o %t
6 RUN: llvm-objdump -t -section-headers %t | FileCheck %s
8 CHECK: {{[0-9]+}} .eh_frame {{[0-9a-z]+}} {{[0-9a-z]+}} DATA
9 CHECK: {{[0-9]+}} .init_array {{[0-9a-z]+}} {{[0-9a-z]+}} DATA
10 CHECK: {{[0-9]+}} .fini_array {{[0-9a-z]+}} {{[0-9a-z]+}} DATA