forked from Imagelibrary/binutils-gdb
Define __EH_FRAME_{BEGIN|END}__
This commit is contained in:
@@ -1,3 +1,9 @@
|
|||||||
|
2001-10-20 Nick Clifton <nickc@cambridge.redhat.com>
|
||||||
|
|
||||||
|
* 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 <danny_r_smith_2001@yahoo.co.nz>
|
2001-10-19 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
|
||||||
|
|
||||||
* pe-dll.c (autofilter_objectlist): Add gcrt0.o.
|
* pe-dll.c (autofilter_objectlist): Add gcrt0.o.
|
||||||
|
|||||||
@@ -6,6 +6,18 @@ if test -z "${DATA_ADDR}"; then
|
|||||||
DATA_ADDR=.
|
DATA_ADDR=.
|
||||||
fi
|
fi
|
||||||
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
|
cat <<EOF
|
||||||
OUTPUT_FORMAT("${OUTPUT_FORMAT}", "${BIG_OUTPUT_FORMAT}", "${LITTLE_OUTPUT_FORMAT}")
|
OUTPUT_FORMAT("${OUTPUT_FORMAT}", "${BIG_OUTPUT_FORMAT}", "${LITTLE_OUTPUT_FORMAT}")
|
||||||
${LIB_SEARCH_DIRS}
|
${LIB_SEARCH_DIRS}
|
||||||
@@ -35,10 +47,19 @@ SECTIONS
|
|||||||
.data ${RELOCATING+${DATA_ADDR-0x40000 + (. & 0xfffc0fff)}} : {
|
.data ${RELOCATING+${DATA_ADDR-0x40000 + (. & 0xfffc0fff)}} : {
|
||||||
${RELOCATING+ __data_start__ = . ;}
|
${RELOCATING+ __data_start__ = . ;}
|
||||||
*(.data*)
|
*(.data*)
|
||||||
|
|
||||||
|
${RELOCATING+*(.gcc_exc*)}
|
||||||
|
${RELOCATING+___EH_FRAME_BEGIN__ = . ;}
|
||||||
|
${RELOCATING+*(.eh_fram*)}
|
||||||
|
${RELOCATING+___EH_FRAME_END__ = . ;}
|
||||||
|
${RELOCATING+LONG(0);}
|
||||||
|
|
||||||
${RELOCATING+ __data_end__ = . ;}
|
${RELOCATING+ __data_end__ = . ;}
|
||||||
${RELOCATING+ edata = .;}
|
${RELOCATING+ edata = .;}
|
||||||
${RELOCATING+ _edata = .;}
|
${RELOCATING+ _edata = .;}
|
||||||
}
|
}
|
||||||
|
${CONSTRUCTING+${RELOCATING-$CTOR}}
|
||||||
|
${CONSTRUCTING+${RELOCATING-$DTOR}}
|
||||||
.bss ${RELOCATING+ SIZEOF(.data) + ADDR(.data)} :
|
.bss ${RELOCATING+ SIZEOF(.data) + ADDR(.data)} :
|
||||||
{
|
{
|
||||||
${RELOCATING+ __bss_start__ = . ;}
|
${RELOCATING+ __bss_start__ = . ;}
|
||||||
|
|||||||
Reference in New Issue
Block a user