hanchenye-llvm-project/lld/test/elf/AArch64/initfini-alignment.test

13 lines
422 B
Plaintext

# This tests the functionality that lld is able to create
# init_array/fini_array sections in the output ELF with the
# right alignment
RUN: lld -flavor gnu -target aarch64--linux-gnu %p/Inputs/initfini-option.o \
RUN: -init init -fini fini --noinhibit-exec -o %t
RUN: llvm-readobj -s %t | FileCheck %s
CHECK: Name: .init_array
CHECK: AddressAlignment: 8
CHECK: Name: .fini_array
CHECK: AddressAlignment: 8