From ecfdd20ccea64a0358dfb8896d7cc15f559de389 Mon Sep 17 00:00:00 2001 From: Stephane Carrez Date: Sun, 25 Nov 2001 17:29:27 +0000 Subject: [PATCH] * scripttempl/elfm68hc11.sc (CTOR, DTOR): Put constructor and destructor in rom. * scripttempl/elfm68hc12.sc (CTOR, DTOR): Likewise. --- ld/ChangeLog | 6 ++++++ ld/scripttempl/elfm68hc11.sc | 4 ++-- ld/scripttempl/elfm68hc12.sc | 4 ++-- 3 files changed, 10 insertions(+), 4 deletions(-) diff --git a/ld/ChangeLog b/ld/ChangeLog index e7592cf250a..a2414bba4c3 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,9 @@ +2001-11-25 Stephane Carrez + + * scripttempl/elfm68hc11.sc (CTOR, DTOR): Put constructor and + destructor in rom. + * scripttempl/elfm68hc12.sc (CTOR, DTOR): Likewise. + 2001-11-22 H.J. Lu * Makefile.in: Regenerated with automake based on automake diff --git a/ld/scripttempl/elfm68hc11.sc b/ld/scripttempl/elfm68hc11.sc index 4bd0dc69370..dc0956e4dad 100644 --- a/ld/scripttempl/elfm68hc11.sc +++ b/ld/scripttempl/elfm68hc11.sc @@ -40,7 +40,7 @@ CTOR=".ctors ${CONSTRUCTING-0} : ${CONSTRUCTING+${CTOR_END}} ${CONSTRUCTING+ PROVIDE(__CTOR_END__ = .); } - } ${RELOCATING+ > ${DATA_MEMORY}}" + } ${RELOCATING+ > ${TEXT_MEMORY}}" DTOR=" .dtors ${CONSTRUCTING-0} : { @@ -52,7 +52,7 @@ DTOR=" .dtors ${CONSTRUCTING-0} : KEEP (*(SORT(.dtors.*))) KEEP (*(.dtors)) */ ${CONSTRUCTING+ PROVIDE(__DTOR_END__ = .); } - } ${RELOCATING+ > ${DATA_MEMORY}}" + } ${RELOCATING+ > ${TEXT_MEMORY}}" VECTORS=" diff --git a/ld/scripttempl/elfm68hc12.sc b/ld/scripttempl/elfm68hc12.sc index 50e9241abdc..a0bc4e0d0b6 100644 --- a/ld/scripttempl/elfm68hc12.sc +++ b/ld/scripttempl/elfm68hc12.sc @@ -40,7 +40,7 @@ CTOR=".ctors ${CONSTRUCTING-0} : ${CONSTRUCTING+${CTOR_END}} ${CONSTRUCTING+ PROVIDE(__CTOR_END__ = .); } - } ${RELOCATING+ > ${DATA_MEMORY}}" + } ${RELOCATING+ > ${TEXT_MEMORY}}" DTOR=" .dtors ${CONSTRUCTING-0} : { @@ -52,7 +52,7 @@ DTOR=" .dtors ${CONSTRUCTING-0} : KEEP (*(SORT(.dtors.*))) KEEP (*(.dtors)) */ ${CONSTRUCTING+ PROVIDE(__DTOR_END__ = .); } - } ${RELOCATING+ > ${DATA_MEMORY}}" + } ${RELOCATING+ > ${TEXT_MEMORY}}" VECTORS=" -- 2.30.2