[RFC PATCH 07/10] arm: efi_loader: discard hash, unwind information

Sam Edwards cfsworks at gmail.com
Sat May 20 22:55:44 CEST 2023


LLD tends to put these at the very beginning of the file, only
for the .text 0x0 directive to end up going backward and
overlapping them, creating an error.

Since they don't appear to be used at runtime, just discard them.

Signed-off-by: Sam Edwards <CFSworks at gmail.com>
---

 arch/arm/lib/elf_arm_efi.lds | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/arch/arm/lib/elf_arm_efi.lds b/arch/arm/lib/elf_arm_efi.lds
index 767ebda635..0b6cc5bcb6 100644
--- a/arch/arm/lib/elf_arm_efi.lds
+++ b/arch/arm/lib/elf_arm_efi.lds
@@ -62,5 +62,8 @@ SECTIONS
 		*(.dynstr)
 		*(.note.gnu.build-id)
 		*(.comment)
+		*(.hash)
+		*(.gnu.hash)
+		*(.ARM.exidx)
 	}
 }
-- 
2.39.2



More information about the U-Boot mailing list