summaryrefslogtreecommitdiff
path: root/src/kernel/link.ld
diff options
context:
space:
mode:
Diffstat (limited to 'src/kernel/link.ld')
-rw-r--r--src/kernel/link.ld6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/kernel/link.ld b/src/kernel/link.ld
index fcdb0bb..00f4dff 100644
--- a/src/kernel/link.ld
+++ b/src/kernel/link.ld
@@ -20,6 +20,12 @@ SECTIONS{
}
.data ALIGN (0x1000) : AT(ADDR(.data) - k_highhalf_addr) {
+ start_ctors = .;
+ *(.ctor*)
+ end_ctors = .;
+ start_dtors = .;
+ *(.dtor*)
+ end_dtors = .;
*(.data)
}