Files
clang-p2996/lld/test/elf/X86_64/initfini-alignment.test
Shankar Easwaran a17e5bc02a [lld][ELF] Support non alloc sections in the Writer.
This also makes it support debugging executables built with lld.

Initial patch done by Bigcheese. This is only a revised patch to
have the functionality in the Writer.

llvm-svn: 191032
2013-09-19 20:07:01 +00:00

13 lines
416 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 x86_64-linux %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