aboutsummaryrefslogtreecommitdiff
path: root/test/old-elf/X86_64/initfini-order.test
blob: e6afcf644346cfb18cdeca858e8d064c465c92f7 (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 old-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