Add .init, .fini, .ctor*, and .dtor* sections to linker script

This commit is contained in:
Eryn Wells 2016-03-10 12:18:52 -05:00
parent c579d57531
commit 3a144749df

View file

@ -11,7 +11,9 @@ SECTIONS
.text BLOCK(4K) : ALIGN(4K)
{
*(.multiboot)
*(.text)
*(.init)
*(.text*)
*(.fini)
}
/* Read-only data. */
@ -24,6 +26,8 @@ SECTIONS
.data BLOCK(4K) : ALIGN(4K)
{
*(.data)
*(.ctor*)
*(.dtor*)
}
/* Read-write data (uninitialized) and stack */