[lld] r189875 - [lld][ELF][X86_64] Test alignment for init_array/fini_array sections

Shankar Easwaran shankare at codeaurora.org
Tue Sep 3 15:46:55 PDT 2013


Author: shankare
Date: Tue Sep  3 17:46:54 2013
New Revision: 189875

URL: http://llvm.org/viewvc/llvm-project?rev=189875&view=rev
Log:
[lld][ELF][X86_64] Test alignment for init_array/fini_array sections

Added:
    lld/trunk/test/elf/X86_64/initfini-alignment.test

Added: lld/trunk/test/elf/X86_64/initfini-alignment.test
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/elf/X86_64/initfini-alignment.test?rev=189875&view=auto
==============================================================================
--- lld/trunk/test/elf/X86_64/initfini-alignment.test (added)
+++ lld/trunk/test/elf/X86_64/initfini-alignment.test Tue Sep  3 17:46:54 2013
@@ -0,0 +1,12 @@
+# 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 (80)
+CHECK:    AddressAlignment: 8
+CHECK:    Name: .fini_array (92)
+CHECK:    AddressAlignment: 8





More information about the llvm-commits mailing list