summaryrefslogtreecommitdiffstats
path: root/arch
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 /arch
parent1eaadd3cef9882cd6d6af2f329b9450ef209e8e7 (diff)
downloadbarebox-eaaa4c81cceb2f5047cfe917d76dae8049f7c24a.tar.gz
barebox-eaaa4c81cceb2f5047cfe917d76dae8049f7c24a.tar.xz
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>
Diffstat (limited to 'arch')
-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 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);