diff options
author | Nick Clifton <nickc@redhat.com> | 2001-10-20 09:56:29 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2001-10-20 09:56:29 +0000 |
commit | fd521b4750cb0df1c841700637de89a7b25cccf3 (patch) | |
tree | cb5fb06a4f2a93f81f36a247ba59ec68e42c86c0 /ld/scripttempl | |
parent | d66b75d138505fc96fa32b065d0dbb440d09ee69 (diff) | |
download | gdb-fd521b4750cb0df1c841700637de89a7b25cccf3.zip gdb-fd521b4750cb0df1c841700637de89a7b25cccf3.tar.gz gdb-fd521b4750cb0df1c841700637de89a7b25cccf3.tar.bz2 |
Define __EH_FRAME_{BEGIN|END}__
Diffstat (limited to 'ld/scripttempl')
-rw-r--r-- | ld/scripttempl/armcoff.sc | 21 |
1 files changed, 21 insertions, 0 deletions
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 <<EOF OUTPUT_FORMAT("${OUTPUT_FORMAT}", "${BIG_OUTPUT_FORMAT}", "${LITTLE_OUTPUT_FORMAT}") ${LIB_SEARCH_DIRS} @@ -35,10 +47,19 @@ SECTIONS .data ${RELOCATING+${DATA_ADDR-0x40000 + (. & 0xfffc0fff)}} : { ${RELOCATING+ __data_start__ = . ;} *(.data*) + + ${RELOCATING+*(.gcc_exc*)} + ${RELOCATING+___EH_FRAME_BEGIN__ = . ;} + ${RELOCATING+*(.eh_fram*)} + ${RELOCATING+___EH_FRAME_END__ = . ;} + ${RELOCATING+LONG(0);} + ${RELOCATING+ __data_end__ = . ;} ${RELOCATING+ edata = .;} ${RELOCATING+ _edata = .;} } + ${CONSTRUCTING+${RELOCATING-$CTOR}} + ${CONSTRUCTING+${RELOCATING-$DTOR}} .bss ${RELOCATING+ SIZEOF(.data) + ADDR(.data)} : { ${RELOCATING+ __bss_start__ = . ;} |