aboutsummaryrefslogtreecommitdiff
path: root/linker.ld
diff options
context:
space:
mode:
authorAqua-sama <aqua@iserlohn-fortress.net>2021-02-21 13:39:12 +0200
committerAqua-sama <aqua@iserlohn-fortress.net>2021-02-21 13:40:39 +0200
commit79c0f7dfb063b5d29dc4547d37efbcb86a89fdac (patch)
treeebbc32b22b31e675ebb5b992a20d569d3bfa8b9e /linker.ld
parentAdd IDT (diff)
downloadkernel.cpp-79c0f7dfb063b5d29dc4547d37efbcb86a89fdac.tar.xz
Call global constructors
Diffstat (limited to 'linker.ld')
-rw-r--r--linker.ld4
1 files changed, 4 insertions, 0 deletions
diff --git a/linker.ld b/linker.ld
index c6c706e..eaf118c 100644
--- a/linker.ld
+++ b/linker.ld
@@ -27,6 +27,10 @@ SECTIONS
/* Read-write data (initialized) */
.data :
{
+ start_ctors = .;
+ KEEP(*(.init_array));
+ KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*)));
+ end_ctors = .;
*(.data)
}