Retro68/binutils/ld/scripttempl/tic30coff.sc

70 lines
1.1 KiB
Python
Raw Normal View History

2022-10-27 18:45:45 +00:00
# Copyright (C) 2014-2022 Free Software Foundation, Inc.
2018-12-28 15:25:28 +00:00
#
2015-08-28 15:32:19 +00: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.
2012-03-26 19:18:29 +00:00
cat <<EOF
2022-10-27 18:45:45 +00:00
/* Copyright (C) 2014-2022 Free Software Foundation, Inc.
2015-08-28 15:32:19 +00: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. */
2012-03-26 19:18:29 +00:00
OUTPUT_FORMAT("${OUTPUT_FORMAT}")
OUTPUT_ARCH("${OUTPUT_ARCH}")
MEMORY
{
rom : ORIGIN = 0x00000300, LENGTH = 16k
ram : ORIGIN = 0x00000300 + 16k, LENGTH = 16k
ramblk0 : ORIGIN = 0x02026000, LENGTH = 0x1000
ramblk1 : ORIGIN = 0x02027000, LENGTH = 0x1000
}
2018-12-28 15:25:28 +00:00
SECTIONS
{
2015-08-28 15:32:19 +00:00
.vectors 0x00000000 :
{
*(vectors)
}
2012-03-26 19:18:29 +00:00
2018-12-28 15:25:28 +00:00
.text :
2015-08-28 15:32:19 +00:00
{
*(.text)
} > rom
2012-03-26 19:18:29 +00:00
2015-08-28 15:32:19 +00:00
.const :
{
*(.const)
__etext = . ;
} > rom
2012-03-26 19:18:29 +00:00
2015-08-28 15:32:19 +00:00
.mdata : AT( ADDR(.const) + SIZEOF(.const) )
{
__data = . ;
*(.data);
__edata = . ;
} > ram
2012-03-26 19:18:29 +00:00
2015-08-28 15:32:19 +00:00
.bss :
{
__bss = . ;
*(.bss);
*(COMMON);
__ebss = . ;
} > ram
2012-03-26 19:18:29 +00:00
2015-08-28 15:32:19 +00:00
.ram0 :
{
*(ram0)
} > ramblk0
2012-03-26 19:18:29 +00:00
2015-08-28 15:32:19 +00:00
.ram1 :
{
*(ram1)
} > ramblk1
2012-03-26 19:18:29 +00:00
}
EOF