diff options
| author | Josh Poimboeuf <jpoimboe@kernel.org> | 2026-03-18 15:42:30 -0700 |
|---|---|---|
| committer | Josh Poimboeuf <jpoimboe@kernel.org> | 2026-05-04 21:16:05 -0700 |
| commit | 8eebd573113362ef3a3c75f166a83ee060dae11b (patch) | |
| tree | 29f0c3cfe698f88cff4d424c89a331bf919960c0 /tools/objtool/include | |
| parent | ff0cf5efef40e3b60e7bb27a6072f9a0c6e4c5ce (diff) | |
objtool: Add is_alias_sym() helper
Improve readability with a new is_alias_sym() helper.
No functional changes intended.
Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Acked-by: Song Liu <song@kernel.org>
Signed-off-by: Josh Poimboeuf <jpoimboe@kernel.org>
Diffstat (limited to 'tools/objtool/include')
| -rw-r--r-- | tools/objtool/include/objtool/elf.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/objtool/include/objtool/elf.h b/tools/objtool/include/objtool/elf.h index 8a543cea43b9..ccc72a692d9a 100644 --- a/tools/objtool/include/objtool/elf.h +++ b/tools/objtool/include/objtool/elf.h @@ -298,6 +298,11 @@ static inline bool is_local_sym(struct symbol *sym) return sym->bind == STB_LOCAL; } +static inline bool is_alias_sym(struct symbol *sym) +{ + return sym->alias != sym; +} + static inline bool is_prefix_func(struct symbol *sym) { return sym->prefix; |
