From: Steve Chamberlain Date: Thu, 17 Jun 1993 21:49:48 +0000 (+0000) Subject: Support for constructors. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f216ecc54a2c58f80b2626fb77caf16514c98c05;p=binutils-gdb.git Support for constructors. --- diff --git a/ld/scripttempl/sh.sc b/ld/scripttempl/sh.sc index b941359b9b8..3eefa62157b 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)