aboutsummaryrefslogtreecommitdiff
path: root/arch/x86
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2022-01-04 03:51:14 -0700
committerHeinrich Schuchardt <heinrich.schuchardt@canonical.com>2022-01-15 10:57:22 +0100
commit3b4ae096b0ed21f3646378cb58d4c03ea2404bac (patch)
treed086a6cbedc7ee127890170f2250ea7caaefa61e /arch/x86
parent450ce56a118975364437cc466ec804d8ded75d29 (diff)
downloadu-boot-3b4ae096b0ed21f3646378cb58d4c03ea2404bac.zip
u-boot-3b4ae096b0ed21f3646378cb58d4c03ea2404bac.tar.gz
u-boot-3b4ae096b0ed21f3646378cb58d4c03ea2404bac.tar.bz2
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 <sjg@chromium.org>
Diffstat (limited to 'arch/x86')
-rw-r--r--arch/x86/lib/elf_x86_64_efi.lds5
1 files changed, 4 insertions, 1 deletions
diff --git a/arch/x86/lib/elf_x86_64_efi.lds b/arch/x86/lib/elf_x86_64_efi.lds
index b436429..7572740 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)
}