diff options
| author | Josh Poimboeuf <jpoimboe@kernel.org> | 2026-04-04 11:30:37 -0700 |
|---|---|---|
| committer | Josh Poimboeuf <jpoimboe@kernel.org> | 2026-05-04 21:16:06 -0700 |
| commit | 3ee67629b2b7fbe270f6c21d9a95219bbd214630 (patch) | |
| tree | 646cea4f9608a6535f03eb202695bd9d686fe85b /scripts/kconfig/tests/conditional_dep/git@git.tavy.me:linux.git | |
| parent | 5d6a03eeb7173179ef3c64e31806d21966a99875 (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 'scripts/kconfig/tests/conditional_dep/git@git.tavy.me:linux.git')
0 files changed, 0 insertions, 0 deletions
