]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
x86/alternative: Remove ANNOTATE_DATA_SPECIAL usage
authorJosh Poimboeuf <jpoimboe@kernel.org>
Tue, 2 Dec 2025 17:59:36 +0000 (09:59 -0800)
committerIngo Molnar <mingo@kernel.org>
Wed, 3 Dec 2025 15:53:19 +0000 (16:53 +0100)
commita818f28f017b23cfe830dd82e89b5aa6b0fea8e5
treeaf342e562f3d45a02f236fabc7898d7e36745d9f
parent0c314a881cac61a80a0e05309fafd48c55dd3afc
x86/alternative: Remove ANNOTATE_DATA_SPECIAL usage

Instead of manually annotating each .altinstructions entry, just make
the section mergeable and store the entry size in the ELF section
header.

Either way works for objtool create_fake_symbols(), this way produces
cleaner code generation.

Signed-off-by: Josh Poimboeuf <jpoimboe@kernel.org>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Link: https://patch.msgid.link/5ac04e6db5be6453dce8003a771ebb0c47b4cd7a.1764694625.git.jpoimboe@kernel.org
arch/um/include/shared/common-offsets.h
arch/x86/include/asm/alternative.h
arch/x86/kernel/asm-offsets.c