mirror of https://github.com/wolfSSL/wolfBoot.git
54 lines
984 B
Plaintext
54 lines
984 B
Plaintext
|
|
/* see SPNU118U - January 2018 section 8.5 for linker syntax */
|
|
--retain="*(.isr_vector)"
|
|
--entry_point=isr_reset
|
|
|
|
|
|
MEMORY
|
|
{
|
|
FLASH (RX) : ORIGIN = @WOLFBOOT_TEST_APP_ADDRESS@, LENGTH = @WOLFBOOT_TEST_APP_SIZE@
|
|
RAM (RWX) : ORIGIN = 0x08000000, LENGTH = 0x00080000
|
|
}
|
|
|
|
SECTIONS
|
|
{
|
|
.text :
|
|
{
|
|
_start_text = .;
|
|
*(.isr_vector)
|
|
*(.text*)
|
|
*(.const*)
|
|
. = ALIGN(4);
|
|
_end_text = .;
|
|
_stored_data = .;
|
|
} > FLASH /* FLASH0 | FLASH1 */
|
|
|
|
.data :
|
|
{
|
|
_start_data = .;
|
|
*(.data*)
|
|
*(.ramcode)
|
|
_end_data = .;
|
|
} load=FLASH, run=RAM
|
|
|
|
.bss (NOLOAD) :
|
|
{
|
|
_start_bss = .;
|
|
__bss_start__ = .;
|
|
*(.bss*)
|
|
. = ALIGN(4);
|
|
_end_bss = .;
|
|
__bss_end__ = .;
|
|
_end = .;
|
|
_start_heap = .;
|
|
} > RAM
|
|
|
|
.stack (NOLOAD) :
|
|
{
|
|
_end_stack = .;
|
|
/* used for dynamic allocation */
|
|
*(.sysmem*)
|
|
} > RAM (HIGH)
|
|
|
|
}
|