aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ld/scripttempl/sh.sc11
1 files changed, 11 insertions, 0 deletions
diff --git a/ld/scripttempl/sh.sc b/ld/scripttempl/sh.sc
index b941359..3eefa62 100644
--- a/ld/scripttempl/sh.sc
+++ b/ld/scripttempl/sh.sc
@@ -14,6 +14,17 @@ SECTIONS
*(.strings)
${RELOCATING+ _etext = . ; }
} ${RELOCATING+ > ram}
+
+
+.tors : {
+ ___ctors = . ;
+ *(.ctors)
+ ___ctors_end = . ;
+ ___dtors = . ;
+ *(.dtors)
+ ___dtors_end = . ;
+} ${RELOCATING+ > ram}
+
.data :
{
*(.data)