summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSolomon Peachy <pizza@shaftnet.org>2024-07-03 16:08:25 -0400
committerSolomon Peachy <pizza@shaftnet.org>2024-07-03 16:51:58 -0400
commit80b91277279105d49fdf5a967d88f6a1abc38bb3 (patch)
tree3a66d045962b1212de3580a0aa9bb4b84f920a41
parentd0e47affa9c2fb96d733261dbdf5383e5b14571b (diff)
downloadrockbox-80b9127727.tar.gz
rockbox-80b9127727.zip
Revert "jx47xx: Rename crt0 'init' sections to 'startup'"
This reverts commit 83bb89d0b836c2571315362603bc5a51cd3b804a. ...It breaks the jz47xx bootloaders.
-rw-r--r--firmware/target/mips/ingenic_jz47xx/app.lds8
-rw-r--r--firmware/target/mips/ingenic_jz47xx/crt0.S2
2 files changed, 3 insertions, 7 deletions
diff --git a/firmware/target/mips/ingenic_jz47xx/app.lds b/firmware/target/mips/ingenic_jz47xx/app.lds
index 1d300fed82..29a973a0ca 100644
--- a/firmware/target/mips/ingenic_jz47xx/app.lds
+++ b/firmware/target/mips/ingenic_jz47xx/app.lds
@@ -37,15 +37,11 @@ SECTIONS
{
. = DRAMORIG;
- .startup :
+ .text :
{
loadaddress = .;
_loadaddress = .;
- *(.startup.text);
- } > DRAM
-
- .text :
- {
+ *(.init.text);
*(.text*);
#ifndef HAVE_INIT_ATTR
*(.init*);
diff --git a/firmware/target/mips/ingenic_jz47xx/crt0.S b/firmware/target/mips/ingenic_jz47xx/crt0.S
index b73a43d8f2..ee203b3b4d 100644
--- a/firmware/target/mips/ingenic_jz47xx/crt0.S
+++ b/firmware/target/mips/ingenic_jz47xx/crt0.S
@@ -44,7 +44,7 @@
.extern main
.global _start
- .section .startup.text,"ax",%progbits
+ .section .init.text
.set push
.set mips32
.set noreorder