Add .init, .fini, .ctor*, and .dtor* sections to linker script
This commit is contained in:
parent
c579d57531
commit
3a144749df
1 changed files with 5 additions and 1 deletions
|
@ -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 */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue