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 <cfswo...@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

Reply via email to