]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - test/elf/X86_64/initfini-order.test
Vendor import of lld trunk r233088:
[FreeBSD/FreeBSD.git] / test / elf / X86_64 / initfini-order.test
1 # This tests the functionality that lld is able to emit
2 # init_array/fini_array sections in the right order.
3
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
7
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