summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--firmware/fw_base.S2
-rw-r--r--firmware/fw_base.ldS2
2 files changed, 2 insertions, 2 deletions
diff --git a/firmware/fw_base.S b/firmware/fw_base.S
index e04b683..fb6ac92 100644
--- a/firmware/fw_base.S
+++ b/firmware/fw_base.S
@@ -526,7 +526,7 @@ _link_start:
_link_end:
RISCV_PTR _fw_reloc_end
__fw_rw_offset:
- RISCV_PTR _fw_rw_offset
+ RISCV_PTR _fw_rw_start - _fw_start
.section .entry, "ax", %progbits
.align 3
diff --git a/firmware/fw_base.ldS b/firmware/fw_base.ldS
index 9a1304e..3d68484 100644
--- a/firmware/fw_base.ldS
+++ b/firmware/fw_base.ldS
@@ -64,7 +64,7 @@
. = ALIGN(1 << LOG2CEIL((SIZEOF(.rodata) + SIZEOF(.text)
+ SIZEOF(.dynsym) + SIZEOF(.rela.dyn))));
- PROVIDE(_fw_rw_offset = (. - _fw_start));
+ PROVIDE(_fw_rw_start = .);
/* Beginning of the read-write data sections */