[PATCH] u-boot-elf.lds: mark executable

Caleb Connolly caleb.connolly at linaro.org
Thu Nov 14 18:03:53 CET 2024


Some pre-loaders/bootROMs like those on Qualcomm platforms actually
use the ELF format and respect the headers. Mark U-Boot as executable so
we can actually run it on these boards.

Signed-off-by: Caleb Connolly <caleb.connolly at linaro.org>
---
 arch/u-boot-elf.lds | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/arch/u-boot-elf.lds b/arch/u-boot-elf.lds
index 1666027e3635..eb84a22dd71b 100644
--- a/arch/u-boot-elf.lds
+++ b/arch/u-boot-elf.lds
@@ -1,5 +1,9 @@
 ENTRY(CONFIG_PLATFORM_ELFENTRY)
+PHDRS
+{
+	data PT_LOAD FLAGS(7);
+}
 SECTIONS
 {
 	. = CONFIG_PLATFORM_ELFENTRY;
 
-- 
2.47.0



More information about the U-Boot mailing list