]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
x86/boot: Move .head.text into its own output section
authorArd Biesheuvel <ardb@kernel.org>
Thu, 5 Dec 2024 11:28:11 +0000 (12:28 +0100)
committerIngo Molnar <mingo@kernel.org>
Thu, 5 Dec 2024 12:18:55 +0000 (13:18 +0100)
commita6a4ae9c3f3a8894c54476cc842069f82af8361c
tree09601751e9c0061280d1e64ac3de163d96c6e4da
parent35350eb689e68897d996b762832782e2e791eb74
x86/boot: Move .head.text into its own output section

In order to be able to double check that vmlinux is emitted without
absolute symbol references in .head.text, it needs to be distinguishable
from the rest of .text in the ELF metadata.

So move .head.text into its own ELF section.

Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: "H. Peter Anvin" <hpa@zytor.com>
Link: https://lore.kernel.org/r/20241205112804.3416920-15-ardb+git@google.com
arch/x86/kernel/vmlinux.lds.S