summaryrefslogtreecommitdiff
path: root/rust/kernel/alloc
diff options
context:
space:
mode:
authorJosh Poimboeuf <jpoimboe@kernel.org>2026-04-04 11:30:37 -0700
committerJosh Poimboeuf <jpoimboe@kernel.org>2026-05-04 21:16:06 -0700
commit3ee67629b2b7fbe270f6c21d9a95219bbd214630 (patch)
tree646cea4f9608a6535f03eb202695bd9d686fe85b /rust/kernel/alloc
parent5d6a03eeb7173179ef3c64e31806d21966a99875 (diff)
objtool: Add insn_sym() helper
Alternative replacement instructions awkwardly have insn->sym set to the function they get patched to rather than the symbol (or rather lack thereof) they belong to in the file. This makes it difficult to know where a given instruction actually lives. Add a new insn_sym() helper which preserves the existing semantic of insn->sym. Rename insn->sym to insn->_sym, which contains the actual ELF binary symbol (or NULL, for alternative replacements) an instruction lives in. The private insn->_sym value will be needed for a subsequent patch. Acked-by: Song Liu <song@kernel.org> Signed-off-by: Josh Poimboeuf <jpoimboe@kernel.org>
Diffstat (limited to 'rust/kernel/alloc')
0 files changed, 0 insertions, 0 deletions