aboutsummaryrefslogtreecommitdiff
path: root/test/elf/X86_64/initfini-order.test
blob: d3981eb0914e979845db04eb6b9cb5c36ae0e83d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
# 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