# Linker script for MCore PE.
#
# Copyright (C) 2014-2017 Free Software Foundation, Inc.
-#
+#
# Copying and distribution of this file, with or without modification,
# are permitted in any medium without royalty provided the copyright
# notice and this notice are preserved.
# because bash 2.x will lose the doublequotes.
cat <<EOF
OUTPUT_FORMAT("${OUTPUT_FORMAT}", "${BIG_OUTPUT_FORMAT}",
- "${LITTLE_OUTPUT_FORMAT}")
+ "${LITTLE_OUTPUT_FORMAT}")
EOF
fi
SECTIONS
{
- .text ${RELOCATING+ __image_base__ + __section_alignment__ } :
+ .text ${RELOCATING+ __image_base__ + __section_alignment__ } :
{
${RELOCATING+ *(.init)}
*(.text)
${RELOCATING+ *(.text.*)}
*(.glue_7t)
*(.glue_7)
- ${CONSTRUCTING+ ___CTOR_LIST__ = .; __CTOR_LIST__ = . ;
+ ${CONSTRUCTING+ ___CTOR_LIST__ = .; __CTOR_LIST__ = . ;
LONG (-1); *(.ctors); *(.ctor); LONG (0); }
- ${CONSTRUCTING+ ___DTOR_LIST__ = .; __DTOR_LIST__ = . ;
+ ${CONSTRUCTING+ ___DTOR_LIST__ = .; __DTOR_LIST__ = . ;
LONG (-1); *(.dtors); *(.dtor); LONG (0); }
${RELOCATING+ *(.fini)}
/* ??? Why is .gcc_exc here? */
breaks building the cygwin32 dll. Instead, we name the section
".data_cygwin_nocopy" and explicitly include it after __data_end__. */
- .data ${RELOCATING+BLOCK(__section_alignment__)} :
+ .data ${RELOCATING+BLOCK(__section_alignment__)} :
{
${RELOCATING+__data_start__ = . ;}
*(.data)
${R_IDATA}
}
.CRT ${RELOCATING+BLOCK(__section_alignment__)} :
- {
+ {
${R_CRT}
}
}
.reloc ${RELOCATING+BLOCK(__section_alignment__)} :
- {
+ {
*(.reloc)
}
.rsrc ${RELOCATING+BLOCK(__section_alignment__)} :
- {
+ {
*(.rsrc)
${R_RSRC}
}