From: Simon Glass Date: Tue, 4 Jan 2022 10:51:14 +0000 (-0700) Subject: x86: efi: Round out the link script for 64-bit EFI X-Git-Url: http://git.dujemihanovic.xyz/?a=commitdiff_plain;h=3b4ae096b0ed21f3646378cb58d4c03ea2404bac;p=u-boot.git x86: efi: Round out the link script for 64-bit EFI 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 --- diff --git a/arch/x86/lib/elf_x86_64_efi.lds b/arch/x86/lib/elf_x86_64_efi.lds index b436429b33..75727400aa 100644 --- a/arch/x86/lib/elf_x86_64_efi.lds +++ b/arch/x86/lib/elf_x86_64_efi.lds @@ -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) }