# Linker script for TI TMS320C80 (tic80) COFF.
#
-# Copyright (C) 2014 Free Software Foundation, Inc.
-#
+# Copyright (C) 2014-2019 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.
test -z "$ENTRY" && ENTRY=__start
cat <<EOF
-/* Copyright (C) 2014 Free Software Foundation, Inc.
+/* Copyright (C) 2014-2019 Free Software Foundation, Inc.
Copying and distribution of this script, with or without modification,
are permitted in any medium without royalty provided the copyright
SECTIONS
{
.text ${RELOCATING+ $TEXT_START_ADDR} : {
- *(.init)
- *(.fini)
+ ${RELOCATING+KEEP (*(SORT_NONE(.init)))
+ KEEP (*(SORT_NONE(.fini)))}
*(.text)
}
.const ALIGN(4) : {
*(.data)
${RELOCATING+ __edata = .};
}
- .bss : {
+ .bss : {
${RELOCATING+ __bss_start = .};
*(.bss)
*(COMMON)
${RELOCATING+ _end = ALIGN(0x8)};
${RELOCATING+ __end = ALIGN(0x8)};
}
- .stab 0 ${RELOCATING+(NOLOAD)} :
+ .stab 0 ${RELOCATING+(NOLOAD)} :
{
[ .stab ]
}