llvm-project/lld/test/elf/X86_64/initfini-order.test

11 lines
448 B
Plaintext

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