2018-01-03 06:17:27 +01:00
|
|
|
# Copyright (C) 2014-2018 Free Software Foundation, Inc.
|
2017-10-12 12:58:30 +02:00
|
|
|
#
|
2014-08-20 11:34:58 +02: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.
|
|
|
|
|
1999-05-03 09:29:11 +02:00
|
|
|
cat <<EOF
|
2018-01-03 06:17:27 +01:00
|
|
|
/* Copyright (C) 2014-2018 Free Software Foundation, Inc.
|
2014-08-20 11:34:58 +02: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. */
|
|
|
|
|
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
|
|
|
|
}
|
|
|
|
|
2017-10-12 12:58:30 +02:00
|
|
|
SECTIONS
|
|
|
|
{
|
2014-08-20 11:34:58 +02:00
|
|
|
.vectors 0x00000000 :
|
|
|
|
{
|
|
|
|
*(vectors)
|
|
|
|
}
|
1999-05-03 09:29:11 +02:00
|
|
|
|
2017-10-12 12:58:30 +02:00
|
|
|
.text :
|
2014-08-20 11:34:58 +02:00
|
|
|
{
|
|
|
|
*(.text)
|
|
|
|
} > rom
|
1999-05-03 09:29:11 +02:00
|
|
|
|
2014-08-20 11:34:58 +02:00
|
|
|
.const :
|
|
|
|
{
|
|
|
|
*(.const)
|
|
|
|
__etext = . ;
|
|
|
|
} > rom
|
1999-05-03 09:29:11 +02:00
|
|
|
|
2014-08-20 11:34:58 +02:00
|
|
|
.mdata : AT( ADDR(.const) + SIZEOF(.const) )
|
|
|
|
{
|
|
|
|
__data = . ;
|
|
|
|
*(.data);
|
|
|
|
__edata = . ;
|
|
|
|
} > ram
|
1999-05-03 09:29:11 +02:00
|
|
|
|
2014-08-20 11:34:58 +02:00
|
|
|
.bss :
|
|
|
|
{
|
|
|
|
__bss = . ;
|
|
|
|
*(.bss);
|
|
|
|
*(COMMON);
|
|
|
|
__ebss = . ;
|
|
|
|
} > ram
|
1999-05-03 09:29:11 +02:00
|
|
|
|
2014-08-20 11:34:58 +02:00
|
|
|
.ram0 :
|
|
|
|
{
|
|
|
|
*(ram0)
|
|
|
|
} > ramblk0
|
1999-05-03 09:29:11 +02:00
|
|
|
|
2014-08-20 11:34:58 +02:00
|
|
|
.ram1 :
|
|
|
|
{
|
|
|
|
*(ram1)
|
|
|
|
} > ramblk1
|
1999-05-03 09:29:11 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
EOF
|