From 1d98a007101ca0037c9ae6a27f6c49615b9f0d73 Mon Sep 17 00:00:00 2001 From: Kinsey Moore Date: Tue, 3 Mar 2026 21:04:09 -0600 Subject: [PATCH] spec/bsps/riscv: Allow start section load address This adds a new memory section load address for the start region. --- spec/build/bsps/riscv/linkcmds.yml | 1 + spec/build/bsps/riscv/linkcmdsbase.yml | 2 +- spec/build/bsps/riscv/niosv/linkcmds.yml | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/spec/build/bsps/riscv/linkcmds.yml b/spec/build/bsps/riscv/linkcmds.yml index 25588ac566..7b08651ad0 100644 --- a/spec/build/bsps/riscv/linkcmds.yml +++ b/spec/build/bsps/riscv/linkcmds.yml @@ -6,6 +6,7 @@ content: | } REGION_ALIAS ("REGION_START", RAM); + REGION_ALIAS ("REGION_START_LOAD", RAM); REGION_ALIAS ("REGION_TEXT", RAM); REGION_ALIAS ("REGION_TEXT_LOAD", RAM); REGION_ALIAS ("REGION_FAST_TEXT", RAM); diff --git a/spec/build/bsps/riscv/linkcmdsbase.yml b/spec/build/bsps/riscv/linkcmdsbase.yml index 87aee53f6c..9a410e4204 100644 --- a/spec/build/bsps/riscv/linkcmdsbase.yml +++ b/spec/build/bsps/riscv/linkcmdsbase.yml @@ -51,7 +51,7 @@ content: | KEEP (*(.bsp_start_text)) KEEP (*(.bsp_start_data)) bsp_section_start_end = .; - } > REGION_START AT > REGION_START + } > REGION_START AT > REGION_START_LOAD bsp_section_start_size = bsp_section_start_end - bsp_section_start_begin; .text : ${LINKCMDS_ALIGN_DIRECTIVE} { diff --git a/spec/build/bsps/riscv/niosv/linkcmds.yml b/spec/build/bsps/riscv/niosv/linkcmds.yml index ec2f0c9c34..9a2a6291e3 100644 --- a/spec/build/bsps/riscv/niosv/linkcmds.yml +++ b/spec/build/bsps/riscv/niosv/linkcmds.yml @@ -9,6 +9,7 @@ content: | } REGION_ALIAS ("REGION_START", EXT_RAM); + REGION_ALIAS ("REGION_START_LOAD", EXT_RAM); REGION_ALIAS ("REGION_TEXT", EXT_RAM); REGION_ALIAS ("REGION_TEXT_LOAD", EXT_RAM); REGION_ALIAS ("REGION_FAST_TEXT", EXT_RAM);