forked from OSchip/llvm-project
[lld][ELF] Change the InitFini atom type from Stub to Data
llvm-svn: 189873
This commit is contained in:
parent
fce7952b79
commit
2b9d1025d6
|
@ -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(); }
|
||||
|
||||
|
|
|
@ -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
|
Loading…
Reference in New Issue