aboutsummaryrefslogtreecommitdiff
path: root/ld/sa29200.sc-sh
diff options
context:
space:
mode:
Diffstat (limited to 'ld/sa29200.sc-sh')
-rwxr-xr-xld/sa29200.sc-sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/ld/sa29200.sc-sh b/ld/sa29200.sc-sh
index d0a395b..6526614 100755
--- a/ld/sa29200.sc-sh
+++ b/ld/sa29200.sc-sh
@@ -22,6 +22,16 @@ SECTIONS {
*(.data2);
${RELOCATING+_edata = .};
${CONSTRUCTING+CONSTRUCTORS}
+ ${CONSTRUCTING+ ___CTOR_LIST__ = .;}
+ ${CONSTRUCTING+ LONG((___CTOR_END__ - ___CTOR_LIST__) / 4 - 2)}
+ *(.ctors)
+ ${CONSTRUCTING+ LONG(0)}
+ ${CONSTRUCTING+ ___CTOR_END__ = .;}
+ ${CONSTRUCTING+ ___DTOR_LIST__ = .;}
+ ${CONSTRUCTING+ LONG((___DTOR_END__ - ___DTOR_LIST__) / 4 - 2)}
+ *(.dtors)
+ ${CONSTRUCTING+ LONG(0)}
+ ${CONSTRUCTING+ ___DTOR_END__ = .;}
}
.bss . :