]> Gentwo Git Trees - linux/.git/commit
objtool: Return canonical symbol when aliases exist in symbol finding helpers
authorJosh Poimboeuf <jpoimboe@kernel.org>
Thu, 20 Nov 2025 20:52:18 +0000 (12:52 -0800)
committerPeter Zijlstra <peterz@infradead.org>
Fri, 21 Nov 2025 09:04:08 +0000 (10:04 +0100)
commit9205a322cf96f16a49e412dfa3f09431f3e02fc5
treef51fe738865c5fee9fb9ec045497f2668c5b2314
parent16f366c5a68839736d3616b466f1738811408ec7
objtool: Return canonical symbol when aliases exist in symbol finding helpers

When symbol alias ambiguity exists in the symbol finding helper
functions, return the canonical sym->alias, as that's the one which gets
used by validate_branch() and elsewhere.

This doesn't fix any known issues, just makes the symbol alias behavior
more robust.

Signed-off-by: Josh Poimboeuf <jpoimboe@kernel.org>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://patch.msgid.link/450470a4897706af77453ad333e18af5ebab653c.1763671318.git.jpoimboe@kernel.org
tools/objtool/elf.c