From 83bb89d0b836c2571315362603bc5a51cd3b804a Mon Sep 17 00:00:00 2001 From: Solomon Peachy Date: Mon, 19 Dec 2022 23:08:45 -0500 Subject: jx47xx: Rename crt0 'init' sections to 'startup' Mirrors the change made to the x1000 target Change-Id: I69663245b1d05c001500240af33164f222e70e90 --- firmware/target/mips/ingenic_jz47xx/app.lds | 8 ++++++-- firmware/target/mips/ingenic_jz47xx/crt0.S | 2 +- 2 files changed, 7 insertions(+), 3 deletions(-) (limited to 'firmware/target/mips/ingenic_jz47xx') 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 -- cgit v1.2.3