feat: added support for constructors/desctructors
This commit is contained in:
@@ -23,6 +23,8 @@ SECTIONS
|
||||
. = 0xffffffff80000000;
|
||||
|
||||
.text : {
|
||||
*(.init)
|
||||
*(.fini)
|
||||
*(.text .text.*)
|
||||
} :text
|
||||
|
||||
@@ -33,6 +35,20 @@ SECTIONS
|
||||
*(.rodata .rodata.*)
|
||||
} :rodata
|
||||
|
||||
/* Include the list of initialization functions sorted. */
|
||||
.init_array :
|
||||
{
|
||||
KEEP (*(.init_array.*))
|
||||
KEEP (*(.init_array))
|
||||
} :rodata
|
||||
|
||||
/* Include the list of termination functions sorted. */
|
||||
.fini_array :
|
||||
{
|
||||
KEEP (*(SORT(.fini_array.*)))
|
||||
KEEP (*(.fini_array))
|
||||
} :rodata
|
||||
|
||||
/* Move to the next memory page for .data */
|
||||
. += CONSTANT(MAXPAGESIZE);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user