[ELF] Set order of ctors/dtors section

llvm-svn: 227707
This commit is contained in:
Shankar Easwaran 2015-02-01 03:21:57 +00:00
parent 0a13acfa8b
commit 0f011fdcdf
2 changed files with 3 additions and 1 deletions

View File

@ -363,6 +363,8 @@ Layout::SectionOrder DefaultLayout<ELFT>::getSectionOrder(
.StartsWith(".init_array", ORDER_INIT_ARRAY)
.StartsWith(".fini_array", ORDER_FINI_ARRAY)
.StartsWith(".dynamic", ORDER_DYNAMIC)
.StartsWith(".ctors", ORDER_CTORS)
.StartsWith(".dtors", ORDER_DTORS)
.Default(ORDER_DATA);
case DefinedAtom::typeZeroFill:

View File

@ -51,7 +51,7 @@
# CHECK-NEXT: section-name: .ctors
# RAW: Contents of section .ctors:
# RAW-NEXT: 2000 ffffffff 11111111 22222222 00000000
# RAW-NEXT: 1000 ffffffff 11111111 22222222 00000000
# crtbeginS.o
---
FileHeader: