diff options
author | Ard Biesheuvel <ardb@kernel.org> | 2023-09-15 17:16:30 +0000 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2023-09-17 19:48:43 +0200 |
commit | fa5750521e0a4efbc1af05223da9c4bbd6c21c83 (patch) | |
tree | 737a235e829e26cf3b9441f5784202a13b69d112 /arch/x86/boot/setup.ld | |
parent | efa089e63b56bdc5eca754b995cb039dd7a5457e (diff) |
x86/boot: Drop PE/COFF .reloc section
Ancient buggy EFI loaders may have required a .reloc section to be
present at some point in time, but this has not been true for a long
time so the .reloc section can just be dropped.
Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Link: https://lore.kernel.org/r/20230915171623.655440-16-ardb@google.com
Diffstat (limited to 'arch/x86/boot/setup.ld')
-rw-r--r-- | arch/x86/boot/setup.ld | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/x86/boot/setup.ld b/arch/x86/boot/setup.ld index 9bd5c1ada599..6d389499565c 100644 --- a/arch/x86/boot/setup.ld +++ b/arch/x86/boot/setup.ld @@ -40,8 +40,8 @@ SECTIONS setup_sig = .; LONG(0x5a5aaa55) - /* Reserve some extra space for the reloc and compat sections */ - setup_size = ALIGN(ABSOLUTE(.) + 64, 512); + /* Reserve some extra space for the compat section */ + setup_size = ALIGN(ABSOLUTE(.) + 32, 512); setup_sects = ABSOLUTE(setup_size / 512); } |