mirror of
https://github.com/tillitis/tillitis-key1.git
synced 2025-03-12 18:16:55 -04:00

App mode can no longer be controlled from software. So the tests have to run from firmware RAM.
65 lines
1.2 KiB
Plaintext
65 lines
1.2 KiB
Plaintext
/*
|
|
* SPDX-FileCopyrightText: 2022 Tillitis AB <tillitis.se>
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*/
|
|
|
|
OUTPUT_ARCH( "riscv" )
|
|
ENTRY(_start)
|
|
|
|
MEMORY
|
|
{
|
|
RAM (rwx) : ORIGIN = 0x40000000, LENGTH = 0x20000 /* 128 KB */
|
|
}
|
|
|
|
SECTIONS
|
|
{
|
|
.text.init :
|
|
{
|
|
*(.text.init)
|
|
} >RAM
|
|
|
|
.text :
|
|
{
|
|
. = ALIGN(4);
|
|
*(.text) /* .text sections (code) */
|
|
*(.text*) /* .text* sections (code) */
|
|
*(.rodata) /* .rodata sections (constants, strings, etc.) */
|
|
*(.rodata*) /* .rodata* sections (constants, strings, etc.) */
|
|
*(.srodata) /* .rodata sections (constants, strings, etc.) */
|
|
*(.srodata*) /* .rodata* sections (constants, strings, etc.) */
|
|
. = ALIGN(4);
|
|
_etext = .;
|
|
_sidata = _etext;
|
|
} >RAM
|
|
|
|
.data : AT (_etext)
|
|
{
|
|
. = ALIGN(4);
|
|
_sdata = .;
|
|
. = ALIGN(4);
|
|
*(.data) /* .data sections */
|
|
*(.data*) /* .data* sections */
|
|
*(.sdata) /* .sdata sections */
|
|
*(.sdata*) /* .sdata* sections */
|
|
. = ALIGN(4);
|
|
_edata = .;
|
|
} >RAM
|
|
|
|
/* Uninitialized data section */
|
|
.bss :
|
|
{
|
|
. = ALIGN(4);
|
|
_sbss = .;
|
|
*(.bss)
|
|
*(.bss*)
|
|
*(.sbss)
|
|
*(.sbss*)
|
|
*(COMMON)
|
|
|
|
. = ALIGN(4);
|
|
_ebss = .;
|
|
} >RAM
|
|
|
|
/* libcrt0/crt0.S inits stack to start just below end of RAM */
|
|
}
|