cmake_cpputest_template/linker.ld

48 lines
738 B
Plaintext

/*
* Filename: linker.ld
* Micro-Controller: stm32f103c8t6
*/
/*
* Program Entry Point:
* This part is put into the elf file header.
*/
ENTRY(Reset_Handler)
/*
* FORMAT:
* R: Read only section.
* W: Read/Write section.
* X: Executable section.
* A: Allocation section.
* I: Initialized section.
* !: Invert following attribute.
*/
/*
* MEMORY Format:
* name [(attr)] : ORIGIN = origin, LENGTH = len
*/
/* You will want to change these values to match your uC.*/
MEMORY
{
FLASH(rx):ORIGIN =0x08000000,LENGTH =64K
SRAM(rwx):ORIGIN =0x20000000,LENGTH =20K
}
floating_point = 0;
SECTIONS
{
. = 0x10000;
.text : { *(.text) }
. = 0x8000000;
.data : { *(.data) }
.bss : { *(.bss) }
}