diff --git a/firmware/target/mips/ingenic_jz47xx/app.lds b/firmware/target/mips/ingenic_jz47xx/app.lds index 0d4952a835..cbeb7c1aaf 100644 --- a/firmware/target/mips/ingenic_jz47xx/app.lds +++ b/firmware/target/mips/ingenic_jz47xx/app.lds @@ -30,11 +30,15 @@ SECTIONS { . = DRAMORIG; - .text : + .startup : { loadaddress = .; _loadaddress = .; - *(.init.text); + *(.startup.text); + } > DRAM + + .text : + { *(.text*); } > DRAM diff --git a/firmware/target/mips/ingenic_jz47xx/crt0.S b/firmware/target/mips/ingenic_jz47xx/crt0.S index 8df00811cb..17cd2b0405 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 .init.text + .section .startup.text,"ax",%progbits .set push .set mips32 .set noreorder