From f216ecc54a2c58f80b2626fb77caf16514c98c05 Mon Sep 17 00:00:00 2001 From: Steve Chamberlain Date: Thu, 17 Jun 1993 21:49:48 +0000 Subject: [PATCH] Support for constructors. --- ld/scripttempl/sh.sc | 11 +++++++++++ 1 file changed, 11 insertions(+) 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) -- 2.30.2