u-boot-elf.lds: mark executable
PATCH 1/1 u-boot-elf.lds: mark executable
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 <[email protected]>
--- arch/u-boot-elf.lds | 4 ++++ 1 file changed, 4 insertions(+)
arch/u-boot-elf.lds +4 -0
@@ -1,5 +1,9 @@ ENTRY(CONFIG_PLATFORM_ELFENTRY) +PHDRS +{ + data PT_LOAD FLAGS(7); +} SECTIONS { . = CONFIG_PLATFORM_ELFENTRY;
Signature · 1 line
2.47.0
Quoted 14 lines · Caleb Connolly
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 <[email protected]>--- arch/u-boot-elf.lds | 4 ++++ 1 file changed, 4 insertions(+)arch/u-boot-elf.lds +0
-0
arch/u-boot-elf.lds line 9
Quoted 9 lines
arch/u-boot-elf.lds +4
-0@@ -1,5 +1,9 @@ ENTRY(CONFIG_PLATFORM_ELFENTRY) +PHDRS +{ + data PT_LOAD FLAGS(7); +} SECTIONS { . = CONFIG_PLATFORM_ELFENTRY;
This leads to thunderx_88xx and many others failing with:
aarch64-linux-ld.bfd: no sections assigned to phdrs
Signature · 1 line
Tom