Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

x86/boot: Get rid of the .head.text section

The .head.text section is now empty, so it can be dropped from the
linker script.

Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Link: https://lore.kernel.org/20250828102202.1849035-46-ardb+git@google.com

authored by

Ard Biesheuvel and committed by
Borislav Petkov (AMD)
ce39a6aa c5c30a37

-5
-5
arch/x86/kernel/vmlinux.lds.S
··· 160 160 161 161 } :text = 0xcccccccc 162 162 163 - /* bootstrapping code */ 164 - .head.text : AT(ADDR(.head.text) - LOAD_OFFSET) { 165 - HEAD_TEXT 166 - } :text = 0xcccccccc 167 - 168 163 /* End of text section, which should occupy whole number of pages */ 169 164 _etext = .; 170 165 . = ALIGN(PAGE_SIZE);