stm32h7: rename startup code .init.text section to .init

rockbox-gerrit-noreply--- via rockbox-cvs <[email protected]>
Newsgroups gmane.comp.systems.archos.rockbox.cvs
Message-ID <[email protected]>
commit 174b33cc07535e67000831c0de0ad9de30a705f4
Author: Aidan MacDonald <[email protected]>
Date:   Thu Jan 22 13:39:40 2026 +0000

    stm32h7: rename startup code .init.text section to .init
    
    Do this for compatibility with INIT_ATTR, which uses the
    .init section.
    
    Change-Id: I473c29e3d38e5d5a563c98fc910d725024072735

diff --git a/firmware/target/arm/stm32/app.lds b/firmware/target/arm/stm32/app.lds
index cd20766d2e..eb19050a07 100644
--- a/firmware/target/arm/stm32/app.lds
+++ b/firmware/target/arm/stm32/app.lds
@@ -39,7 +39,7 @@ SECTIONS
     {
         loadaddress = .; /* only needed to keep ROLO happy */
 
-        *(.init.text*)
+        *(.init*)
         *(.text*)
     } > SRAM_AXI :sram_rx
 
diff --git a/firmware/target/arm/stm32/boot.lds b/firmware/target/arm/stm32/boot.lds
index b93a8ce7dc..018b8742d2 100644
--- a/firmware/target/arm/stm32/boot.lds
+++ b/firmware/target/arm/stm32/boot.lds
@@ -18,7 +18,7 @@ SECTIONS
     {
         KEEP(*(.vectors.arm))
         KEEP(*(.vectors.platform))
-        *(.init.text*)
+        *(.init*)
         *(.text*)
         *(.rodata*)
     } > FLASH1
diff --git a/firmware/target/arm/stm32/crt0-stm32h7.S b/firmware/target/arm/stm32/crt0-stm32h7.S
index 8c8c8d082d..0548350cc9 100644
--- a/firmware/target/arm/stm32/crt0-stm32h7.S
+++ b/firmware/target/arm/stm32/crt0-stm32h7.S
@@ -24,7 +24,7 @@
     .syntax unified
     .text
 
-    .section .init.text,"ax",%progbits
+    .section .init,"ax",%progbits
 
     .global reset_handler
     .type reset_handler, function
-- 
rockbox-cvs mailing list
[email protected]
https://lists.haxx.se/mailman/listinfo/rockbox-cvs
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.