aboutsummaryrefslogtreecommitdiff
path: root/linker.ld
diff options
context:
space:
mode:
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)
}