[PATCH 1/2] arm: armv7: restore section to .text after saved_args
Yang Xiwen via B4 Relay
devnull+forbidden405.outlook.com at kernel.org
Sat May 31 15:10:02 CEST 2025
From: Yang Xiwen <forbidden405 at outlook.com>
when CONFIG_BLOBLIST is enabled, the section is switched to .data but is
not switched back to .text. It makes all the code below placed in .data
section, also breaks CONFIG_POSITION_INDEPENDENT.
Fix it by adding `.section .text` to switch the section back to .text.
Fixes: 5103e69344d6 ("arm: armv7: save boot arguments")
Signed-off-by: Yang Xiwen <forbidden405 at outlook.com>
---
arch/arm/cpu/armv7/start.S | 2 ++
1 file changed, 2 insertions(+)
diff --git a/arch/arm/cpu/armv7/start.S b/arch/arm/cpu/armv7/start.S
index 959251957de4..833486817f84 100644
--- a/arch/arm/cpu/armv7/start.S
+++ b/arch/arm/cpu/armv7/start.S
@@ -182,6 +182,8 @@ saved_args:
.word 0
.endr
END(saved_args)
+
+ .section .text
#endif
#ifdef CONFIG_ARMV7_LPAE
--
2.43.0
More information about the U-Boot
mailing list