From eaaa4c81cceb2f5047cfe917d76dae8049f7c24a Mon Sep 17 00:00:00 2001 From: Ahmad Fatoum Date: Wed, 4 Dec 2019 13:56:54 +0100 Subject: x86: efi: lds: don't discard any relocation sections The incoming EFI PCI root bridge IO protocol driver will register PCI fixups. Executing them will fail because the hook function's relocation information is stripped from the final barebox.efi binary. Instead of adding each section by name, just keep all .rela* sections in the final binary. This doesn't yet increase the size of the resulting barebox (yet). Signed-off-by: Ahmad Fatoum Signed-off-by: Sascha Hauer --- arch/x86/mach-efi/elf_x86_64_efi.lds.S | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/arch/x86/mach-efi/elf_x86_64_efi.lds.S b/arch/x86/mach-efi/elf_x86_64_efi.lds.S index 40a9425034..ed79118a36 100644 --- a/arch/x86/mach-efi/elf_x86_64_efi.lds.S +++ b/arch/x86/mach-efi/elf_x86_64_efi.lds.S @@ -58,12 +58,7 @@ SECTIONS . = ALIGN(4096); .rela : { - *(.rela.data*) - *(.rela.barebox*) - *(.rela.initcall*) - *(.rela.exitcall*) - *(.rela.got) - *(.rela.stab) + *(.rela*) } . = ALIGN(4096); -- cgit v1.2.3