]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
x86/boot: Get rid of the .head.text section
authorArd Biesheuvel <ardb@kernel.org>
Thu, 28 Aug 2025 10:22:25 +0000 (12:22 +0200)
committerBorislav Petkov (AMD) <bp@alien8.de>
Wed, 3 Sep 2025 16:06:32 +0000 (18:06 +0200)
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
arch/x86/kernel/vmlinux.lds.S

index 4277efb263588abacf92ed6df0bf29e726e99c78..d7af4a64c211b7c1bb882fb21a71477c7442f8b8 100644 (file)
@@ -160,11 +160,6 @@ SECTIONS
 
        } :text = 0xcccccccc
 
-       /* bootstrapping code */
-       .head.text : AT(ADDR(.head.text) - LOAD_OFFSET) {
-               HEAD_TEXT
-       } :text = 0xcccccccc
-
        /* End of text section, which should occupy whole number of pages */
        _etext = .;
        . = ALIGN(PAGE_SIZE);