mirror of
https://github.com/armel/uv-k1-k5v3-firmware-custom.git
synced 2026-10-02 03:15:37 +00:00
31 lines
763 B
Plaintext
31 lines
763 B
Plaintext
/* Tetris overlay app: code, constants, data and BSS share the 4 KiB workspace. */
|
|
APP_VMA = DEFINED(APP_VMA) ? APP_VMA : 0x20000280;
|
|
APP_LENGTH = 0x1000;
|
|
|
|
ENTRY(app_main)
|
|
|
|
MEMORY {
|
|
APP (rwx) : ORIGIN = APP_VMA, LENGTH = APP_LENGTH
|
|
}
|
|
|
|
SECTIONS {
|
|
.app APP_VMA : {
|
|
KEEP(*(.text.entry))
|
|
*(.text .text.*)
|
|
*(.rodata .rodata.*)
|
|
. = ALIGN(4);
|
|
*(.data .data.*)
|
|
. = ALIGN(4);
|
|
__app_bss_start = .;
|
|
*(.bss .bss.* COMMON)
|
|
. = ALIGN(4);
|
|
__app_bss_end = .;
|
|
} > APP
|
|
|
|
__app_end = .;
|
|
ASSERT(__app_end <= APP_VMA + APP_LENGTH,
|
|
"Tetris overlay app overflows the 4 KiB overlay")
|
|
|
|
/DISCARD/ : { *(.ARM.exidx*) *(.ARM.extab*) *(.eh_frame*) *(.comment) *(.note.*) }
|
|
}
|