2014-08-20 17:34:58 +08:00
|
|
|
# Default linker script for c54x, TI COFF(1).
|
2000-06-30 20:36:38 +08:00
|
|
|
# patterned after description in TI Assembler Tools PDF, SPRU102C, 7-53
|
2014-08-20 17:34:58 +08:00
|
|
|
#
|
2022-01-02 06:30:17 +08:00
|
|
|
# Copyright (C) 2014-2022 Free Software Foundation, Inc.
|
2017-10-12 18:58:30 +08:00
|
|
|
#
|
2014-08-20 17:34:58 +08:00
|
|
|
# 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.
|
|
|
|
|
2000-06-20 21:29:07 +08:00
|
|
|
test -z "$ENTRY" && ENTRY=_c_int00
|
|
|
|
|
|
|
|
cat <<EOF
|
2022-01-02 06:30:17 +08:00
|
|
|
/* Copyright (C) 2014-2022 Free Software Foundation, Inc.
|
2014-08-20 17:34:58 +08:00
|
|
|
|
|
|
|
Copying and distribution of this script, with or without modification,
|
|
|
|
are permitted in any medium without royalty provided the copyright
|
|
|
|
notice and this notice are preserved. */
|
|
|
|
|
2000-06-20 21:29:07 +08:00
|
|
|
OUTPUT_FORMAT("${OUTPUT_FORMAT}")
|
|
|
|
OUTPUT_ARCH("${OUTPUT_ARCH}")
|
|
|
|
|
|
|
|
MEMORY
|
|
|
|
{
|
2000-06-30 20:36:38 +08:00
|
|
|
/*PAGE 0 : */ prog (RXI) : ORIGIN = 0x00000080, LENGTH = 0xFF00
|
|
|
|
/*PAGE 1 : */ data (W) : ORIGIN = 0x01000080, LENGTH = 0xFF80
|
2000-06-20 21:29:07 +08:00
|
|
|
}
|
|
|
|
|
2009-10-10 12:34:39 +08:00
|
|
|
${RELOCATING+ENTRY (${ENTRY})}
|
2000-06-20 21:29:07 +08:00
|
|
|
|
2017-10-12 18:58:30 +08:00
|
|
|
SECTIONS
|
|
|
|
{
|
|
|
|
.text :
|
2000-06-20 21:29:07 +08:00
|
|
|
{
|
|
|
|
___text__ = .;
|
|
|
|
*(.text)
|
|
|
|
etext = .;
|
|
|
|
___etext__ = .;
|
|
|
|
} > prog
|
2017-10-12 18:58:30 +08:00
|
|
|
.data :
|
2000-06-20 21:29:07 +08:00
|
|
|
{
|
|
|
|
___data__ = .;
|
|
|
|
__data = .;
|
|
|
|
*(.data)
|
|
|
|
__edata = .;
|
|
|
|
edata = .;
|
|
|
|
___edata__ = .;
|
|
|
|
} > prog
|
|
|
|
/* all other initialized sections should be allocated here */
|
2017-10-12 18:58:30 +08:00
|
|
|
.cinit :
|
2000-06-20 21:29:07 +08:00
|
|
|
{
|
|
|
|
*(.cinit)
|
|
|
|
} > prog
|
2017-10-12 18:58:30 +08:00
|
|
|
.bss :
|
2000-06-20 21:29:07 +08:00
|
|
|
{
|
|
|
|
___bss__ = .;
|
|
|
|
__bss = .;
|
|
|
|
*(.bss)
|
|
|
|
*(COMMON)
|
|
|
|
__ebss = .;
|
|
|
|
end = .;
|
|
|
|
___end__ = .;
|
|
|
|
} > data
|
|
|
|
/* all other uninitialized sections should be allocated here */
|
|
|
|
}
|
|
|
|
EOF
|