contiki/cpu/arm/stm32f1x_cl/STM32F107VCT.ld
Jeff Ciesielski 6b97fa8382 stm32f1x_cl: Fix stm32f107 linker script
This is a critical fix which adds inclusion of the entire data/bss
section to the output ELF file.  Without it, the BSS section will not
be zeroed out
2013-02-09 23:54:14 -08:00

55 lines
859 B
Plaintext

MEMORY
{
CODE (rx) : ORIGIN = 0x08000000, LENGTH = 256K
DATA (xrw) : ORIGIN = 0x20000000, LENGTH = 64K
}
/* Section Definitions */
EXTERN (vector_table)
ENTRY(reset_handler)
SECTIONS
{
/* Make sure the vector table is at address 0 */
.text : {
*(.vectors)
*(.text*)
. = ALIGN(4);
*(.rodata*)
. = ALIGN(4);
} >CODE
. = ALIGN(4);
_etext = . ;
PROVIDE (etext = .);
.data :
{
_data = . ;
*(.data*)
. = ALIGN(4);
_edata = . ;
PROVIDE (_edata = .);
} >DATA AT >CODE
_data_loadaddr = LOADADDR(.data);
/* .bss section which is used for uninitialized data */
.bss :
{
__bss_start = . ;
__bss_start__ = . ;
*(.bss*)
*(COMMON)
. = ALIGN(4);
_ebss = . ;
} >DATA
. = ALIGN(4);
_end = .;
PROVIDE (_end = .);
}
PROVIDE(_stack = ORIGIN(DATA) + LENGTH(DATA));