mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-02-06 20:52:40 +00:00
refactor(core): remove unused linker script symbols
[no changelog]
This commit is contained in:
parent
6719eeb376
commit
236c377e20
@ -33,24 +33,6 @@ _accessible_ram_1_end = MCU_SRAM + MCU_SRAM_SIZE;
|
||||
_bootargs_ram_start = BOOTARGS_START;
|
||||
_bootargs_ram_end = BOOTARGS_START + BOOTARGS_SIZE;
|
||||
|
||||
/* used by the startup code to wipe memory */
|
||||
_startup_clear_ram_0_start = MCU_CCMRAM;
|
||||
_startup_clear_ram_0_end = MCU_CCMRAM + MCU_CCMRAM_SIZE;
|
||||
_startup_clear_ram_1_start = MCU_SRAM;
|
||||
_startup_clear_ram_1_end = MCU_SRAM + MCU_SRAM_SIZE;
|
||||
|
||||
/* used by the startup/jump code to wipe memory */
|
||||
_handoff_clear_ram_0_start = MCU_CCMRAM;
|
||||
_handoff_clear_ram_0_end = MCU_CCMRAM + MCU_CCMRAM_SIZE;
|
||||
_handoff_clear_ram_1_start = MCU_SRAM;
|
||||
_handoff_clear_ram_1_end = MCU_SRAM + MCU_SRAM_SIZE;
|
||||
|
||||
/* used by the shutdown code to wipe memory */
|
||||
_shutdown_clear_ram_0_start = MCU_CCMRAM;
|
||||
_shutdown_clear_ram_0_end = MCU_CCMRAM + MCU_CCMRAM_SIZE;
|
||||
_shutdown_clear_ram_1_start = MCU_SRAM;
|
||||
_shutdown_clear_ram_1_end = MCU_SRAM + MCU_SRAM_SIZE;
|
||||
|
||||
SECTIONS {
|
||||
.vector_table : ALIGN(CODE_ALIGNMENT) {
|
||||
KEEP(*(.vector_table));
|
||||
|
@ -33,28 +33,6 @@ _accessible_ram_1_end = MCU_SRAM + MCU_SRAM_SIZE;
|
||||
_bootargs_ram_start = BOOTARGS_START;
|
||||
_bootargs_ram_end = BOOTARGS_START + BOOTARGS_SIZE;
|
||||
|
||||
/* used by the startup code to wipe memory */
|
||||
_startup_clear_ram_0_start = MCU_CCMRAM;
|
||||
_startup_clear_ram_0_end = MCU_CCMRAM + MCU_CCMRAM_SIZE - BOOTARGS_SIZE;
|
||||
_startup_clear_ram_1_start = MCU_SRAM;
|
||||
_startup_clear_ram_1_end = MCU_SRAM + MCU_SRAM_SIZE;
|
||||
|
||||
/* used by the jump code to wipe memory */
|
||||
_handoff_clear_ram_0_start = MCU_CCMRAM;
|
||||
_handoff_clear_ram_0_end = MCU_CCMRAM + MCU_CCMRAM_SIZE;
|
||||
_handoff_clear_ram_1_start = MCU_SRAM;
|
||||
_handoff_clear_ram_1_end = MCU_SRAM + MCU_SRAM_SIZE;
|
||||
|
||||
/* used by the shutdown code to wipe memory */
|
||||
_shutdown_clear_ram_0_start = MCU_CCMRAM;
|
||||
_shutdown_clear_ram_0_end = MCU_CCMRAM + MCU_CCMRAM_SIZE;
|
||||
_shutdown_clear_ram_1_start = MCU_SRAM;
|
||||
_shutdown_clear_ram_1_end = MCU_SRAM + MCU_SRAM_SIZE;
|
||||
|
||||
/* reserve 256 bytes for bootloader arguments */
|
||||
boot_args_start = ORIGIN(BOOT_ARGS);
|
||||
boot_args_end = ORIGIN(BOOT_ARGS) + LENGTH(BOOT_ARGS);
|
||||
|
||||
_codelen = SIZEOF(.flash) + SIZEOF(.data);
|
||||
|
||||
SECTIONS {
|
||||
|
@ -33,24 +33,6 @@ _accessible_ram_1_end = MCU_SRAM + MCU_SRAM_SIZE;
|
||||
_bootargs_ram_start = BOOTARGS_START;
|
||||
_bootargs_ram_end = BOOTARGS_START + BOOTARGS_SIZE;
|
||||
|
||||
/* used by the startup code to wipe memory */
|
||||
_startup_clear_ram_0_start = MCU_CCMRAM;
|
||||
_startup_clear_ram_0_end = MCU_CCMRAM + MCU_CCMRAM_SIZE;
|
||||
_startup_clear_ram_1_start = MCU_SRAM;
|
||||
_startup_clear_ram_1_end = MCU_SRAM + MCU_SRAM_SIZE;
|
||||
|
||||
/* used by the jump code to wipe memory */
|
||||
_handoff_clear_ram_0_start = MCU_CCMRAM;
|
||||
_handoff_clear_ram_0_end = MCU_CCMRAM + MCU_CCMRAM_SIZE - BOOTARGS_SIZE;
|
||||
_handoff_clear_ram_1_start = MCU_SRAM;
|
||||
_handoff_clear_ram_1_end = MCU_SRAM + MCU_SRAM_SIZE;
|
||||
|
||||
/* used by the shutdown code to wipe memory */
|
||||
_shutdown_clear_ram_0_start = MCU_CCMRAM;
|
||||
_shutdown_clear_ram_0_end = MCU_CCMRAM + MCU_CCMRAM_SIZE;
|
||||
_shutdown_clear_ram_1_start = MCU_SRAM;
|
||||
_shutdown_clear_ram_1_end = MCU_SRAM + MCU_SRAM_SIZE;
|
||||
|
||||
_codelen = SIZEOF(.vendorheader) + SIZEOF(.header) + SIZEOF(.flash) + SIZEOF(.data) ;
|
||||
|
||||
SECTIONS {
|
||||
|
@ -33,28 +33,6 @@ _accessible_ram_1_end = MCU_SRAM + MCU_SRAM_SIZE;
|
||||
_bootargs_ram_start = BOOTARGS_START;
|
||||
_bootargs_ram_end = BOOTARGS_START + BOOTARGS_SIZE;
|
||||
|
||||
/* used by the startup code to wipe memory */
|
||||
_startup_clear_ram_0_start = MCU_CCMRAM;
|
||||
_startup_clear_ram_0_end = MCU_CCMRAM + MCU_CCMRAM_SIZE;
|
||||
_startup_clear_ram_1_start = MCU_SRAM;
|
||||
_startup_clear_ram_1_end = MCU_SRAM + MCU_SRAM_SIZE;
|
||||
|
||||
/* used by the startup/jump code to wipe memory */
|
||||
_handoff_clear_ram_0_start = MCU_CCMRAM;
|
||||
_handoff_clear_ram_0_end = MCU_CCMRAM + MCU_CCMRAM_SIZE - BOOTARGS_SIZE;
|
||||
_handoff_clear_ram_1_start = MCU_SRAM;
|
||||
_handoff_clear_ram_1_end = MCU_SRAM + MCU_SRAM_SIZE;
|
||||
|
||||
/* used by the shutdown code to wipe memory */
|
||||
_shutdown_clear_ram_0_start = MCU_CCMRAM;
|
||||
_shutdown_clear_ram_0_end = MCU_CCMRAM + MCU_CCMRAM_SIZE;
|
||||
_shutdown_clear_ram_1_start = MCU_SRAM;
|
||||
_shutdown_clear_ram_1_end = MCU_SRAM + MCU_SRAM_SIZE;
|
||||
|
||||
/* reserve 256 bytes for bootloader arguments */
|
||||
boot_args_start = ORIGIN(BOOT_ARGS);
|
||||
boot_args_end = ORIGIN(BOOT_ARGS) + LENGTH(BOOT_ARGS);
|
||||
|
||||
_codelen = SIZEOF(.flash) + SIZEOF(.data);
|
||||
_flash_start = ORIGIN(FLASH);
|
||||
_flash_end = ORIGIN(FLASH) + LENGTH(FLASH);
|
||||
|
@ -36,32 +36,6 @@ _accessible_ram_1_end = MCU_SRAM4 + MCU_SRAM4_SIZE;
|
||||
_bootargs_ram_start = BOOTARGS_START;
|
||||
_bootargs_ram_end = BOOTARGS_START + BOOTARGS_SIZE;
|
||||
|
||||
/* used by the startup code to wipe memory */
|
||||
_startup_clear_ram_0_start = MCU_SRAM1;
|
||||
_startup_clear_ram_0_end = MCU_SRAM1 + MCU_SRAM1_SIZE - BOOTARGS_SIZE;
|
||||
_startup_clear_ram_1_start = MCU_SRAM2;
|
||||
_startup_clear_ram_1_end = MCU_SRAM3 + MCU_SRAM3_SIZE;
|
||||
_startup_clear_ram_2_start = MCU_SRAM4;
|
||||
_startup_clear_ram_2_end = MCU_SRAM4 + MCU_SRAM4_SIZE;
|
||||
|
||||
/* used by the jump code to wipe memory */
|
||||
_handoff_clear_ram_0_start = MCU_SRAM1;
|
||||
_handoff_clear_ram_0_end = MCU_SRAM1 + MCU_SRAM1_SIZE - BOOTARGS_SIZE;
|
||||
_handoff_clear_ram_1_start = MCU_SRAM2;
|
||||
_handoff_clear_ram_1_end = MCU_SRAM3 + MCU_SRAM3_SIZE;
|
||||
_handoff_clear_ram_2_start = MCU_SRAM4;
|
||||
_handoff_clear_ram_2_end = MCU_SRAM4 + MCU_SRAM4_SIZE;
|
||||
|
||||
/* used by the shutdown code to wipe memory */
|
||||
_shutdown_clear_ram_0_start = MCU_SRAM1;
|
||||
_shutdown_clear_ram_0_end = MCU_SRAM3 + MCU_SRAM3_SIZE;
|
||||
_shutdown_clear_ram_1_start = MCU_SRAM4;
|
||||
_shutdown_clear_ram_1_end = MCU_SRAM4 + MCU_SRAM4_SIZE;
|
||||
_shutdown_clear_ram_2_start = 0;
|
||||
_shutdown_clear_ram_2_end = 0;
|
||||
_shutdown_clear_ram_3_start = 0;
|
||||
_shutdown_clear_ram_3_end = 0;
|
||||
|
||||
SECTIONS {
|
||||
.vector_table : ALIGN(CODE_ALIGNMENT) {
|
||||
KEEP(*(.vector_table));
|
||||
|
@ -35,32 +35,6 @@ _accessible_ram_1_end = MCU_SRAM4 + MCU_SRAM4_SIZE;
|
||||
_bootargs_ram_start = BOOTARGS_START;
|
||||
_bootargs_ram_end = BOOTARGS_START + BOOTARGS_SIZE;
|
||||
|
||||
/* used by the startup code to wipe memory */
|
||||
_startup_clear_ram_0_start = MCU_SRAM1;
|
||||
_startup_clear_ram_0_end = MCU_SRAM1 + MCU_SRAM1_SIZE - BOOTARGS_SIZE;
|
||||
_startup_clear_ram_1_start = MCU_SRAM2;
|
||||
_startup_clear_ram_1_end = MCU_SRAM3 + MCU_SRAM3_SIZE;
|
||||
_startup_clear_ram_2_start = MCU_SRAM4;
|
||||
_startup_clear_ram_2_end = MCU_SRAM4 + MCU_SRAM4_SIZE;
|
||||
|
||||
/* used by the jump code to wipe memory */
|
||||
_handoff_clear_ram_0_start = MCU_SRAM1;
|
||||
_handoff_clear_ram_0_end = MCU_SRAM1 + MCU_SRAM1_SIZE;
|
||||
_handoff_clear_ram_1_start = MCU_SRAM2;
|
||||
_handoff_clear_ram_1_end = MCU_SRAM3 + MCU_SRAM3_SIZE;
|
||||
_handoff_clear_ram_2_start = MCU_SRAM4;
|
||||
_handoff_clear_ram_2_end = MCU_SRAM4 + MCU_SRAM4_SIZE;
|
||||
|
||||
/* used by the shutdown code to wipe memory */
|
||||
_shutdown_clear_ram_0_start = MCU_SRAM1;
|
||||
_shutdown_clear_ram_0_end = MCU_SRAM3 + MCU_SRAM3_SIZE;
|
||||
_shutdown_clear_ram_1_start = MCU_SRAM4;
|
||||
_shutdown_clear_ram_1_end = MCU_SRAM4 + MCU_SRAM4_SIZE;
|
||||
_shutdown_clear_ram_2_start = 0;
|
||||
_shutdown_clear_ram_2_end = 0;
|
||||
_shutdown_clear_ram_3_start = 0;
|
||||
_shutdown_clear_ram_3_end = 0;
|
||||
|
||||
_codelen = SIZEOF(.flash) + SIZEOF(.data) + SIZEOF(.confidential);
|
||||
|
||||
SECTIONS {
|
||||
|
@ -38,32 +38,6 @@ _accessible_ram_1_end = MCU_SRAM4 + MCU_SRAM4_SIZE;
|
||||
_bootargs_ram_start = BOOTARGS_START;
|
||||
_bootargs_ram_end = BOOTARGS_START + BOOTARGS_SIZE;
|
||||
|
||||
/* used by the startup code to wipe memory */
|
||||
_startup_clear_ram_0_start = MCU_SRAM1;
|
||||
_startup_clear_ram_0_end = MCU_SRAM1 + MCU_SRAM1_SIZE;
|
||||
_startup_clear_ram_1_start = MCU_SRAM2;
|
||||
_startup_clear_ram_1_end = MCU_SRAM3 + MCU_SRAM3_SIZE;
|
||||
_startup_clear_ram_2_start = MCU_SRAM4;
|
||||
_startup_clear_ram_2_end = MCU_SRAM4 + MCU_SRAM4_SIZE;
|
||||
|
||||
/* used by the jump code to wipe memory */
|
||||
_handoff_clear_ram_0_start = MCU_SRAM1;
|
||||
_handoff_clear_ram_0_end = MCU_SRAM1 + MCU_SRAM1_SIZE - 512;
|
||||
_handoff_clear_ram_1_start = MCU_SRAM2;
|
||||
_handoff_clear_ram_1_end = MCU_SRAM3 + MCU_SRAM3_SIZE;
|
||||
_handoff_clear_ram_2_start = MCU_SRAM4;
|
||||
_handoff_clear_ram_2_end = MCU_SRAM4 + MCU_SRAM4_SIZE;
|
||||
|
||||
/* used by the shutdown code to wipe memory */
|
||||
_shutdown_clear_ram_0_start = MCU_SRAM1;
|
||||
_shutdown_clear_ram_0_end = MCU_SRAM3 + MCU_SRAM3_SIZE;
|
||||
_shutdown_clear_ram_1_start = MCU_SRAM4;
|
||||
_shutdown_clear_ram_1_end = MCU_SRAM4 + MCU_SRAM4_SIZE;
|
||||
_shutdown_clear_ram_2_start = 0;
|
||||
_shutdown_clear_ram_2_end = 0;
|
||||
_shutdown_clear_ram_3_start = 0;
|
||||
_shutdown_clear_ram_3_end = 0;
|
||||
|
||||
_codelen = SIZEOF(.vendorheader) + SIZEOF(.header) + SIZEOF(.flash) + SIZEOF(.uflash) + SIZEOF(.data) + SIZEOF(.confidential);
|
||||
_flash_start = ORIGIN(FLASH);
|
||||
_flash_end = ORIGIN(FLASH) + LENGTH(FLASH);
|
||||
|
@ -35,32 +35,6 @@ _accessible_ram_1_end = MCU_SRAM4 + MCU_SRAM4_SIZE;
|
||||
_bootargs_ram_start = BOOTARGS_START;
|
||||
_bootargs_ram_end = BOOTARGS_START + BOOTARGS_SIZE;
|
||||
|
||||
/* used by the startup code to wipe memory */
|
||||
_startup_clear_ram_0_start = MCU_SRAM1;
|
||||
_startup_clear_ram_0_end = MCU_SRAM1 + MCU_SRAM1_SIZE;
|
||||
_startup_clear_ram_1_start = MCU_SRAM2;
|
||||
_startup_clear_ram_1_end = MCU_SRAM3 + MCU_SRAM3_SIZE;
|
||||
_startup_clear_ram_2_start = MCU_SRAM4;
|
||||
_startup_clear_ram_2_end = MCU_SRAM4 + MCU_SRAM4_SIZE;
|
||||
|
||||
/* used by the jump code to wipe memory */
|
||||
_handoff_clear_ram_0_start = MCU_SRAM1;
|
||||
_handoff_clear_ram_0_end = MCU_SRAM1 + MCU_SRAM1_SIZE - BOOTARGS_SIZE;
|
||||
_handoff_clear_ram_1_start = MCU_SRAM2;
|
||||
_handoff_clear_ram_1_end = MCU_SRAM3 + MCU_SRAM3_SIZE;
|
||||
_handoff_clear_ram_2_start = MCU_SRAM4;
|
||||
_handoff_clear_ram_2_end = MCU_SRAM4 + MCU_SRAM4_SIZE;
|
||||
|
||||
/* used by the shutdown code to wipe memory */
|
||||
_shutdown_clear_ram_0_start = MCU_SRAM1;
|
||||
_shutdown_clear_ram_0_end = MCU_SRAM3 + MCU_SRAM3_SIZE;
|
||||
_shutdown_clear_ram_1_start = MCU_SRAM4;
|
||||
_shutdown_clear_ram_1_end = MCU_SRAM4 + MCU_SRAM4_SIZE;
|
||||
_shutdown_clear_ram_2_start = 0;
|
||||
_shutdown_clear_ram_2_end = 0;
|
||||
_shutdown_clear_ram_3_start = 0;
|
||||
_shutdown_clear_ram_3_end = 0;
|
||||
|
||||
_codelen = SIZEOF(.flash) + SIZEOF(.data) + SIZEOF(.confidential);
|
||||
_flash_start = ORIGIN(FLASH);
|
||||
_flash_end = ORIGIN(FLASH) + LENGTH(FLASH);
|
||||
|
@ -36,31 +36,6 @@ _accessible_ram_1_end = MCU_SRAM4 + MCU_SRAM4_SIZE;
|
||||
_bootargs_ram_start = BOOTARGS_START;
|
||||
_bootargs_ram_end = BOOTARGS_START + BOOTARGS_SIZE;
|
||||
|
||||
/* used by the startup code to wipe memory */
|
||||
_startup_clear_ram_0_start = MCU_SRAM1 + BOOTARGS_SIZE;
|
||||
_startup_clear_ram_0_end = MCU_SRAM1 + MCU_SRAM1_SIZE;
|
||||
_startup_clear_ram_1_start = MCU_SRAM2;
|
||||
_startup_clear_ram_1_end = MCU_SRAM6 + MCU_SRAM6_SIZE;
|
||||
_startup_clear_ram_2_start = MCU_SRAM4;
|
||||
_startup_clear_ram_2_end = MCU_SRAM4 + MCU_SRAM4_SIZE;
|
||||
|
||||
/* used by the jump code to wipe memory */
|
||||
_handoff_clear_ram_0_start = MCU_SRAM1 + BOOTARGS_SIZE;
|
||||
_handoff_clear_ram_0_end = MCU_SRAM1 + MCU_SRAM1_SIZE;
|
||||
_handoff_clear_ram_1_start = MCU_SRAM2;
|
||||
_handoff_clear_ram_1_end = MCU_SRAM6 + MCU_SRAM6_SIZE;
|
||||
_handoff_clear_ram_2_start = MCU_SRAM4;
|
||||
_handoff_clear_ram_2_end = MCU_SRAM4 + MCU_SRAM4_SIZE;
|
||||
|
||||
/* used by the shutdown code to wipe memory */
|
||||
_shutdown_clear_ram_0_start = MCU_SRAM1;
|
||||
_shutdown_clear_ram_0_end = ADDR(.fb1);
|
||||
_shutdown_clear_ram_1_start = ADDR(.fb1) + SIZEOF(.fb1);
|
||||
_shutdown_clear_ram_1_end = ADDR(.fb2);
|
||||
_shutdown_clear_ram_2_start = ADDR(.fb2) + SIZEOF(.fb2);
|
||||
_shutdown_clear_ram_2_end = MCU_SRAM6 + MCU_SRAM6_SIZE;
|
||||
_shutdown_clear_ram_3_start = MCU_SRAM4;
|
||||
_shutdown_clear_ram_3_end = MCU_SRAM4 + MCU_SRAM4_SIZE;
|
||||
|
||||
SECTIONS {
|
||||
.vector_table : ALIGN(CODE_ALIGNMENT) {
|
||||
|
@ -35,32 +35,6 @@ _accessible_ram_1_end = MCU_SRAM4 + MCU_SRAM4_SIZE;
|
||||
_bootargs_ram_start = BOOTARGS_START;
|
||||
_bootargs_ram_end = BOOTARGS_START + BOOTARGS_SIZE;
|
||||
|
||||
/* used by the startup code to wipe memory */
|
||||
_startup_clear_ram_0_start = MCU_SRAM1 + BOOTARGS_SIZE;
|
||||
_startup_clear_ram_0_end = MCU_SRAM1 + MCU_SRAM1_SIZE;
|
||||
_startup_clear_ram_1_start = MCU_SRAM2;
|
||||
_startup_clear_ram_1_end = MCU_SRAM6 + MCU_SRAM6_SIZE;
|
||||
_startup_clear_ram_2_start = MCU_SRAM4;
|
||||
_startup_clear_ram_2_end = MCU_SRAM4 + MCU_SRAM4_SIZE;
|
||||
|
||||
/* used by the jump code to wipe memory */
|
||||
_handoff_clear_ram_0_start = MCU_SRAM1;
|
||||
_handoff_clear_ram_0_end = MCU_SRAM1 + MCU_SRAM1_SIZE;
|
||||
_handoff_clear_ram_1_start = MCU_SRAM2;
|
||||
_handoff_clear_ram_1_end = MCU_SRAM6 + MCU_SRAM6_SIZE;
|
||||
_handoff_clear_ram_2_start = MCU_SRAM4;
|
||||
_handoff_clear_ram_2_end = MCU_SRAM4 + MCU_SRAM4_SIZE;
|
||||
|
||||
/* used by the shutdown code to wipe memory */
|
||||
_shutdown_clear_ram_0_start = MCU_SRAM1;
|
||||
_shutdown_clear_ram_0_end = ADDR(.fb1);
|
||||
_shutdown_clear_ram_1_start = ADDR(.fb1) + SIZEOF(.fb1);
|
||||
_shutdown_clear_ram_1_end = ADDR(.fb2);
|
||||
_shutdown_clear_ram_2_start = ADDR(.fb2) + SIZEOF(.fb2);
|
||||
_shutdown_clear_ram_2_end = MCU_SRAM6 + MCU_SRAM6_SIZE;
|
||||
_shutdown_clear_ram_3_start = MCU_SRAM4;
|
||||
_shutdown_clear_ram_3_end = MCU_SRAM4 + MCU_SRAM4_SIZE;
|
||||
|
||||
_codelen = SIZEOF(.padding) + SIZEOF(.flash) + SIZEOF(.data) + SIZEOF(.confidential);
|
||||
|
||||
SECTIONS {
|
||||
|
@ -39,32 +39,6 @@ _accessible_ram_1_end = MCU_SRAM4 + MCU_SRAM4_SIZE;
|
||||
_bootargs_ram_start = BOOTARGS_START;
|
||||
_bootargs_ram_end = BOOTARGS_START + BOOTARGS_SIZE;
|
||||
|
||||
/* used by the startup code to wipe memory */
|
||||
_startup_clear_ram_0_start = MCU_SRAM1;
|
||||
_startup_clear_ram_0_end = MCU_SRAM1 + MCU_SRAM1_SIZE;
|
||||
_startup_clear_ram_1_start = MCU_SRAM2;
|
||||
_startup_clear_ram_1_end = MCU_SRAM6 + MCU_SRAM6_SIZE;
|
||||
_startup_clear_ram_2_start = MCU_SRAM4;
|
||||
_startup_clear_ram_2_end = MCU_SRAM4 + MCU_SRAM4_SIZE;
|
||||
|
||||
/* used by the jump code to wipe memory */
|
||||
_handoff_clear_ram_0_start = MCU_SRAM1 + BOOTARGS_SIZE;
|
||||
_handoff_clear_ram_0_end = MCU_SRAM1 + MCU_SRAM1_SIZE;
|
||||
_handoff_clear_ram_1_start = MCU_SRAM2;
|
||||
_handoff_clear_ram_1_end = MCU_SRAM6 + MCU_SRAM6_SIZE;
|
||||
_handoff_clear_ram_2_start = MCU_SRAM4;
|
||||
_handoff_clear_ram_2_end = MCU_SRAM4 + MCU_SRAM4_SIZE;
|
||||
|
||||
/* used by the shutdown code to wipe memory */
|
||||
_shutdown_clear_ram_0_start = MCU_SRAM1;
|
||||
_shutdown_clear_ram_0_end = ADDR(.fb1);
|
||||
_shutdown_clear_ram_1_start = ADDR(.fb1) + SIZEOF(.fb1);
|
||||
_shutdown_clear_ram_1_end = ADDR(.fb2);
|
||||
_shutdown_clear_ram_2_start = ADDR(.fb2) + SIZEOF(.fb2);
|
||||
_shutdown_clear_ram_2_end = MCU_SRAM6 + MCU_SRAM6_SIZE;
|
||||
_shutdown_clear_ram_3_start = MCU_SRAM4;
|
||||
_shutdown_clear_ram_3_end = MCU_SRAM4 + MCU_SRAM4_SIZE;
|
||||
|
||||
_codelen = SIZEOF(.vendorheader) + SIZEOF(.header) + SIZEOF(.flash) + SIZEOF(.uflash) + SIZEOF(.data) + SIZEOF(.confidential);
|
||||
_flash_start = ORIGIN(FLASH);
|
||||
_flash_end = ORIGIN(FLASH) + LENGTH(FLASH);
|
||||
|
@ -35,34 +35,8 @@ _accessible_ram_1_end = MCU_SRAM4 + MCU_SRAM4_SIZE;
|
||||
_bootargs_ram_start = BOOTARGS_START;
|
||||
_bootargs_ram_end = BOOTARGS_START + BOOTARGS_SIZE;
|
||||
|
||||
/* used by the startup code to wipe memory */
|
||||
_startup_clear_ram_0_start = MCU_SRAM1;
|
||||
_startup_clear_ram_0_end = MCU_SRAM1 + MCU_SRAM1_SIZE;
|
||||
_startup_clear_ram_1_start = MCU_SRAM2;
|
||||
_startup_clear_ram_1_end = MCU_SRAM6 + MCU_SRAM6_SIZE;
|
||||
_startup_clear_ram_2_start = MCU_SRAM4;
|
||||
_startup_clear_ram_2_end = MCU_SRAM4 + MCU_SRAM4_SIZE;
|
||||
|
||||
/* used by the jump code to wipe memory */
|
||||
_handoff_clear_ram_0_start = MCU_SRAM1 + BOOTARGS_SIZE;
|
||||
_handoff_clear_ram_0_end = MCU_SRAM1 + MCU_SRAM1_SIZE;
|
||||
_handoff_clear_ram_1_start = MCU_SRAM2;
|
||||
_handoff_clear_ram_1_end = MCU_SRAM6 + MCU_SRAM6_SIZE;
|
||||
_handoff_clear_ram_2_start = MCU_SRAM4;
|
||||
_handoff_clear_ram_2_end = MCU_SRAM4 + MCU_SRAM4_SIZE;
|
||||
|
||||
/* used by the shutdown code to wipe memory */
|
||||
_shutdown_clear_ram_0_start = MCU_SRAM1;
|
||||
_shutdown_clear_ram_0_end = ADDR(.fb1);
|
||||
_shutdown_clear_ram_1_start = ADDR(.fb1) + SIZEOF(.fb1);
|
||||
_shutdown_clear_ram_1_end = ADDR(.fb2);
|
||||
_shutdown_clear_ram_2_start = ADDR(.fb2) + SIZEOF(.fb2);
|
||||
_shutdown_clear_ram_2_end = MCU_SRAM6 + MCU_SRAM6_SIZE;
|
||||
_shutdown_clear_ram_3_start = MCU_SRAM4;
|
||||
_shutdown_clear_ram_3_end = MCU_SRAM4 + MCU_SRAM4_SIZE;
|
||||
|
||||
|
||||
_codelen = SIZEOF(.padding) + SIZEOF(.flash) + SIZEOF(.data) + SIZEOF(.confidential);
|
||||
|
||||
_flash_start = ORIGIN(FLASH);
|
||||
_flash_end = ORIGIN(FLASH) + LENGTH(FLASH);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user