]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
x86/boot: Drop PE/COFF .reloc section
authorArd Biesheuvel <ardb@kernel.org>
Fri, 15 Sep 2023 17:16:30 +0000 (17:16 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 23 Feb 2024 08:25:27 +0000 (09:25 +0100)
commit476316bb48c1eea1ad1d317615f715f8d067166d
treed937448abf308fbd114229368cb9eb2a0495a6e2
parent0db81e8e20f60a0b357584d746a9ad8bc3f7c579
x86/boot: Drop PE/COFF .reloc section

commit fa5750521e0a4efbc1af05223da9c4bbd6c21c83 upstream.

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
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/x86/boot/header.S
arch/x86/boot/setup.ld
arch/x86/boot/tools/build.c