summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAhmad Fatoum <a.fatoum@pengutronix.de>2019-12-04 13:56:54 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2019-12-09 10:27:35 +0100
commiteaaa4c81cceb2f5047cfe917d76dae8049f7c24a (patch)
treed396123b949e4eb580932a86b305e171b528b74a
parent1eaadd3cef9882cd6d6af2f329b9450ef209e8e7 (diff)
downloadbarebox-eaaa4c81cceb2f5047cfe917d76dae8049f7c24a.tar.gz
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 <a.fatoum@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
-rw-r--r--arch/x86/mach-efi/elf_x86_64_efi.lds.S7
1 files changed, 1 insertions, 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 40a9425..ed79118 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);