aboutsummaryrefslogtreecommitdiff
path: root/ld/scripttempl
diff options
context:
space:
mode:
authorSteve Chamberlain <sac@cygnus>1993-06-17 21:49:48 +0000
committerSteve Chamberlain <sac@cygnus>1993-06-17 21:49:48 +0000
commitf216ecc54a2c58f80b2626fb77caf16514c98c05 (patch)
treed11444c0eb3e06cf354c8fa4803a18f184813af1 /ld/scripttempl
parent565c93e92a2fc21b0442757bff2e93701c80d639 (diff)
downloadgdb-f216ecc54a2c58f80b2626fb77caf16514c98c05.zip
gdb-f216ecc54a2c58f80b2626fb77caf16514c98c05.tar.gz
gdb-f216ecc54a2c58f80b2626fb77caf16514c98c05.tar.bz2
Support for constructors.
Diffstat (limited to 'ld/scripttempl')
-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)