373a8c32b2
git-svn-id: file:///srv/dev-disk-by-uuid-17e88007-4d0c-45e0-8757-cacfcc458630/repositories/svn/Diplomarbeit@55 9fe90eed-be63-e94b-8204-d34ff4c2ff93
90 lines
1.6 KiB
Plaintext
90 lines
1.6 KiB
Plaintext
MEMORY
|
|
{
|
|
flash : ORIGIN = 0x00005000, LENGTH = 500K - 20K
|
|
ramheader : ORIGIN = 0x40000000, LENGTH = 0x60
|
|
/* ram : ORIGIN = 0x40000060, LENGTH = 32K - 0x60 */
|
|
ram : ORIGIN = 0x40000060, LENGTH = 64K - 0x60
|
|
usbram : ORIGIN = 0x7FD00000, LENGTH = 8K
|
|
ethram : ORIGIN = 0x7FE00000, LENGTH = 16K
|
|
rtcram : ORIGIN = 0xE0084000, LENGTH = 2K
|
|
}
|
|
|
|
/* __stack_end__ = 0x40000000 + 32K - 4; */
|
|
__stack_end__ = 0x40000000 + 64K - 4;
|
|
|
|
SECTIONS
|
|
{
|
|
. = 0;
|
|
startup : { *(.startup)} >flash
|
|
|
|
prog :
|
|
{
|
|
*(.text)
|
|
*(.rodata)
|
|
*(.rodata*)
|
|
*(.glue_7)
|
|
*(.glue_7t)
|
|
} >flash
|
|
|
|
__end_of_text__ = .;
|
|
|
|
.data :
|
|
{
|
|
__data_beg__ = .;
|
|
__data_beg_src__ = __end_of_text__;
|
|
*(.data)
|
|
__data_end__ = .;
|
|
} >ram AT>flash
|
|
|
|
.bss :
|
|
{
|
|
__bss_beg__ = .;
|
|
*(.bss)
|
|
*(COMMON)
|
|
__bss_end__ = .;
|
|
} >ram
|
|
|
|
.backupram (NOLOAD):
|
|
{
|
|
__backupram_beg__ = .;
|
|
*(.backupram);
|
|
__backupram_end__ = .;
|
|
} >ram
|
|
|
|
|
|
/* Align here to ensure that the .bss section occupies space up to
|
|
_end. Align after .bss to ensure correct alignment even if the
|
|
.bss section disappears because there are no input sections. */
|
|
. = ALIGN(32 / 8);
|
|
|
|
.usbram (NOLOAD):
|
|
{
|
|
__usbram_beg__ = .;
|
|
*(.dmaram)
|
|
__usbram_end__ = .;
|
|
} >usbram
|
|
|
|
.ethram (NOLOAD):
|
|
{
|
|
__ethram_beg__ = .;
|
|
*(.ethram)
|
|
__ethram_end__ = .;
|
|
} >ethram
|
|
|
|
|
|
.rtcram (NOLOAD):
|
|
{
|
|
__rtcram_beg__ = .;
|
|
*(.rtcram)
|
|
__rtcram_end__ = .;
|
|
} >rtcram
|
|
|
|
}
|
|
. = ALIGN(32 / 8);
|
|
_end = .;
|
|
/*_bss_end__ = . ; __bss_end__ = . ; */
|
|
__end__ = . ;
|
|
PROVIDE (end = .);
|
|
|
|
|