mirror-linux/tools/objtool/include/objtool
Ard Biesheuvel 0d6e4563fc objtool: Add action to check for absence of absolute relocations
The x86 startup code must not use absolute references to code or data,
as it executes before the kernel virtual mapping is up.

Add an action to objtool to check all allocatable sections (with the
exception of __patchable_function_entries, which uses absolute
references for nebulous reasons) and raise an error if any absolute
references are found.

Note that debug sections typically contain lots of absolute references
too, but those are not allocatable so they will be ignored.

Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lore.kernel.org/20250828102202.1849035-39-ardb+git@google.com
2025-09-03 17:59:51 +02:00
..
arch.h objtool: Add action to check for absence of absolute relocations 2025-09-03 17:59:51 +02:00
builtin.h objtool: Add action to check for absence of absolute relocations 2025-09-03 17:59:51 +02:00
cfi.h objtool: Allow stack operations in UNWIND_HINT_UNDEFINED regions 2023-06-07 10:03:11 -07:00
check.h objtool: Fix X86_FEATURE_SMAP alternative handling 2025-03-25 09:20:26 +01:00
elf.h objtool: Speed up SHT_GROUP reindexing 2025-05-14 13:09:02 +02:00
endianness.h objtool: Use target file endianness instead of a compiled constant 2022-11-18 19:00:15 +11:00
objtool.h objtool: Improve error handling 2025-03-25 09:20:27 +01:00
orc.h objtool/x86: Separate arch-specific and generic parts 2024-03-11 22:23:47 +08:00
special.h objtool: Fix X86_FEATURE_SMAP alternative handling 2025-03-25 09:20:26 +01:00
warn.h objtool: Change "warning:" to "error: " for fatal errors 2025-04-01 09:07:13 +02:00