You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

55 lines
1.8 KiB

/* Xinu for STM32
*
* Original license applies
* Modifications for STM32 by Robin Krens
* Please see LICENSE and AUTHORS
*
* $LOG$
* 2019/11/11 - ROBIN KRENS
* Initial version
*
* $DESCRIPTION$
*
* */
/* OUTPUT_ARCH(arm) */
ENTRY(start)
physbase = 0x08000000;
MEMORY
{
/* FLASH (xr) : ORIGIN = 0x08000000, LENGTH = 512K */
FLASH (xr) : ORIGIN = 0x8000000, LENGTH = 128K
/* SRAM (xrw) : ORIGIN = 0x20000000, LENGTH = 64K */
SRAM (xrw) : ORIGIN = 0x20000000, LENGTH = 16K
}
SECTIONS
{
. = 0x0; /* Image starts here */
.text : ALIGN(4) {
text = ABSOLUTE(.); /* text: beginning of text segment */
*(.text .text.*) /* asm text, then C text */
*(.rodata .rodata.*) /* asm and C read-only data */
etext = ABSOLUTE(.) ; /* etext: end of text */
}
. = 0x20000000;
.data : AT(etext)
{
data = ABSOLUTE(.); /* data: beginning of data segment */
*(.data .data.*)
edata = ABSOLUTE(.) ; /* edata: end of data */
}
.bss ALIGN(4) :
{
bss = ABSOLUTE(.); /* bss: beginning of bss segment */
*(.bss .bss.*)
*(COMMON) /* extra sections that are common */
ebss = ABSOLUTE(.) ; /* ebss: end of bss */
. = ALIGN(8); */
end = ABSOLUTE(.); /* end: end of image */
_end = ABSOLUTE(.); /* _end: end of image */
. = ALIGN(8);
}
}