From fd521b4750cb0df1c841700637de89a7b25cccf3 Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Sat, 20 Oct 2001 09:56:29 +0000 Subject: [PATCH] Define __EH_FRAME_{BEGIN|END}__ --- ld/ChangeLog | 6 ++++++ ld/scripttempl/armcoff.sc | 21 +++++++++++++++++++++ 2 files changed, 27 insertions(+) diff --git a/ld/ChangeLog b/ld/ChangeLog index 0c0a882..1ff2d26 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,9 @@ +2001-10-20 Nick Clifton + + * scripttempl/armcoff.sc: Define __EH_FRAME_BEGIN__ and + __EH_FRAME_END__ and accept eh frames into data section. + Add ctor and dtor sections. + 2001-10-19 Danny Smith * pe-dll.c (autofilter_objectlist): Add gcrt0.o. diff --git a/ld/scripttempl/armcoff.sc b/ld/scripttempl/armcoff.sc index 4311f10..c61f734 100644 --- a/ld/scripttempl/armcoff.sc +++ b/ld/scripttempl/armcoff.sc @@ -6,6 +6,18 @@ if test -z "${DATA_ADDR}"; then DATA_ADDR=. fi fi + +# These are substituted in as variables in order to get '}' in a shell +# conditional expansion. +CTOR='.ctor : { + *(SORT(.ctors.*)) + *(.ctor) + }' +DTOR='.dtor : { + *(SORT(.dtors.*)) + *(.dtor) + }' + cat <