aboutsummaryrefslogtreecommitdiff
path: root/mubios/linker.ld
diff options
context:
space:
mode:
authorRichard Qin <richard.qin.x@gmail.com>2026-11-08 04:20:07 +0800
committerRichard Qin <richard.qin.x@gmail.com>2026-11-08 04:20:07 +0800
commit76fefff7f1dc96dbb48818256f2307b9bff7af00 (patch)
treedf4bc13b56436c3f63c47391df5c3d9fd7b74ebe /mubios/linker.ld
parent974eba39dfe2fe46f2fa2ce244c6425714e96bad (diff)
downloadrcc-project-76fefff7f1dc96dbb48818256f2307b9bff7af00.tar.gz
rcc-project-76fefff7f1dc96dbb48818256f2307b9bff7af00.tar.xz
[mubios] Fix the link order for the 16-bit entries
Signed-off-by: Richard Qin <richard.qin.x@gmail.com>
Diffstat (limited to 'mubios/linker.ld')
-rw-r--r--mubios/linker.ld10
1 files changed, 9 insertions, 1 deletions
diff --git a/mubios/linker.ld b/mubios/linker.ld
index 85545d3..004c1bc 100644
--- a/mubios/linker.ld
+++ b/mubios/linker.ld
@@ -35,9 +35,17 @@ SECTIONS
__rom_start = .;
. = ALIGN(16);
+ .text16.entry :
+ {
+ KEEP(*(.text16 .entry))
+ } > ROM
+ .text16.mode :
+ {
+ KEEP(*(.text16.mode))
+ } > ROM
.text16 :
{
- KEEP(*(.text16 .text16.*))
+ KEEP(*(.text16.mode))
} > ROM
. = ALIGN(16);