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

Configure Feed

Select the types of activity you want to include in your feed.

objtool: Do not validate IBT for .return_sites and .call_sites

The .return_sites and .call_sites sections reference text addresses,
but not with the intent to indirect branch to them, so they don't
need to be validated for IBT.

This is useful when running objtool on object files which already
have .return_sites or .call_sites sections, for example to re-run
objtool after it has reported an error or a warning.

Signed-off-by: Alexandre Chartre <alexandre.chartre@oracle.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Acked-by: Josh Poimboeuf <jpoimboe@kernel.org>
Link: https://patch.msgid.link/20251121095340.464045-17-alexandre.chartre@oracle.com

authored by

Alexandre Chartre and committed by
Peter Zijlstra
c3b7d044 350c7ab8

+2
+2
tools/objtool/check.c
··· 4753 4753 !strcmp(sec->name, ".llvm.call-graph-profile") || 4754 4754 !strcmp(sec->name, ".llvm_bb_addr_map") || 4755 4755 !strcmp(sec->name, "__tracepoints") || 4756 + !strcmp(sec->name, ".return_sites") || 4757 + !strcmp(sec->name, ".call_sites") || 4756 4758 !strcmp(sec->name, "__patchable_function_entries")) 4757 4759 continue; 4758 4760