]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
x86: efi: Round out the link script for 64-bit EFI
authorSimon Glass <sjg@chromium.org>
Tue, 4 Jan 2022 10:51:14 +0000 (03:51 -0700)
committerHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Sat, 15 Jan 2022 09:57:22 +0000 (10:57 +0100)
Make sure the linker lists are in the right place and drop the eh_frame
section, which is not needed.

Signed-off-by: Simon Glass <sjg@chromium.org>
arch/x86/lib/elf_x86_64_efi.lds

index b436429b33e6d12fdacf70c233b15947611df866..75727400aa4bb37a4af570e294d9f496a15a951a 100644 (file)
@@ -63,6 +63,7 @@ SECTIONS
                *(.rela.data*)
                *(.rela.got)
                *(.rela.stab)
+                *(.rela.u_boot_list*)
        }
 
        . = ALIGN(4096);
@@ -70,9 +71,11 @@ SECTIONS
        . = ALIGN(4096);
        .dynstr : { *(.dynstr) }
        . = ALIGN(4096);
+
+        /DISCARD/ : { *(.eh_frame) }
+
        .ignored.reloc : {
                *(.rela.reloc)
-               *(.eh_frame)
                *(.note.GNU-stack)
        }