binutils-gdb/ld/scripttempl/tic30coff.sc

70 lines
1.1 KiB
Python
Raw Normal View History

2016-01-01 12:25:12 +01:00
# Copyright (C) 2014-2016 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.
1999-05-03 09:29:11 +02:00
cat <<EOF
2016-01-01 12:25:12 +01:00
/* Copyright (C) 2014-2016 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. */
1999-05-03 09:29:11 +02: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
}
SECTIONS
{
.vectors 0x00000000 :
{
*(vectors)
}
1999-05-03 09:29:11 +02:00
.text :
{
*(.text)
} > rom
1999-05-03 09:29:11 +02:00
.const :
{
*(.const)
__etext = . ;
} > rom
1999-05-03 09:29:11 +02:00
.mdata : AT( ADDR(.const) + SIZEOF(.const) )
{
__data = . ;
*(.data);
__edata = . ;
} > ram
1999-05-03 09:29:11 +02:00
.bss :
{
__bss = . ;
*(.bss);
*(COMMON);
__ebss = . ;
} > ram
1999-05-03 09:29:11 +02:00
.ram0 :
{
*(ram0)
} > ramblk0
1999-05-03 09:29:11 +02:00
.ram1 :
{
*(ram1)
} > ramblk1
1999-05-03 09:29:11 +02:00
}
EOF