[lld][ELF] Change the InitFini atom type from Stub to Data

llvm-svn: 189873
This commit is contained in:
Shankar Easwaran 2013-09-03 22:44:44 +00:00
parent fce7952b79
commit 2b9d1025d6
2 changed files with 11 additions and 1 deletions

View File

@ -893,7 +893,7 @@ public:
virtual StringRef customSectionName() const { return _section; }
virtual ContentType contentType() const { return typeStub; }
virtual ContentType contentType() const { return typeData; }
virtual uint64_t size() const { return rawContent().size(); }

View File

@ -0,0 +1,10 @@
# This tests the functionality that lld is able to emit
# init_array/fini_array sections in the right order.
RUN: lld -flavor gnu -target x86_64-linux %p/Inputs/initfini.o \
RUN: --noinhibit-exec -o %t
RUN: llvm-objdump -t -section-headers %t | FileCheck %s
CHECK: 9 .eh_frame {{[0-9]+}} {{[0-9]+}} DATA
CHECK: 10 .init_array {{[0-9]+}} {{[0-9]+}} DATA
CHECK: 11 .fini_array {{[0-9]+}} {{[0-9]+}} DATA