From 80b91277279105d49fdf5a967d88f6a1abc38bb3 Mon Sep 17 00:00:00 2001 From: Solomon Peachy Date: Wed, 3 Jul 2024 16:08:25 -0400 Subject: Revert "jx47xx: Rename crt0 'init' sections to 'startup'" This reverts commit 83bb89d0b836c2571315362603bc5a51cd3b804a. ...It breaks the jz47xx bootloaders. --- firmware/target/mips/ingenic_jz47xx/app.lds | 8 ++------ firmware/target/mips/ingenic_jz47xx/crt0.S | 2 +- 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 -- cgit v1.2.3