binutils-gdb/ld/scripttempl/tic54xcoff.sc
Alan Modra a2c5833233 Update year range in copyright notice of binutils files
The result of running etc/update-copyright.py --this-year, fixing all
the files whose mode is changed by the script, plus a build with
--enable-maintainer-mode --enable-cgen-maint=yes, then checking
out */po/*.pot which we don't update frequently.

The copy of cgen was with commit d1dd5fcc38ead reverted as that commit
breaks building of bfp opcodes files.
2022-01-02 12:04:28 +10:30

66 lines
1.3 KiB
Python

# Default linker script for c54x, TI COFF(1).
# patterned after description in TI Assembler Tools PDF, SPRU102C, 7-53
#
# Copyright (C) 2014-2022 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=_c_int00
cat <<EOF
/* Copyright (C) 2014-2022 Free Software Foundation, Inc.
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. */
OUTPUT_FORMAT("${OUTPUT_FORMAT}")
OUTPUT_ARCH("${OUTPUT_ARCH}")
MEMORY
{
/*PAGE 0 : */ prog (RXI) : ORIGIN = 0x00000080, LENGTH = 0xFF00
/*PAGE 1 : */ data (W) : ORIGIN = 0x01000080, LENGTH = 0xFF80
}
${RELOCATING+ENTRY (${ENTRY})}
SECTIONS
{
.text :
{
___text__ = .;
*(.text)
etext = .;
___etext__ = .;
} > prog
.data :
{
___data__ = .;
__data = .;
*(.data)
__edata = .;
edata = .;
___edata__ = .;
} > prog
/* all other initialized sections should be allocated here */
.cinit :
{
*(.cinit)
} > prog
.bss :
{
___bss__ = .;
__bss = .;
*(.bss)
*(COMMON)
__ebss = .;
end = .;
___end__ = .;
} > data
/* all other uninitialized sections should be allocated here */
}
EOF