diff options
| author | Josh Poimboeuf <jpoimboe@kernel.org> | 2026-04-12 22:40:02 -0700 |
|---|---|---|
| committer | Josh Poimboeuf <jpoimboe@kernel.org> | 2026-05-04 21:16:04 -0700 |
| commit | 8d4cbb6d0caf03b0a22be4d6d2198a9edac46517 (patch) | |
| tree | 99ab1a98b170e8ae60e061bdd4f4675e7a1fc00e /tools/objtool/elf.c | |
| parent | b6480aaedf3cbdd0a8e4b75c77434423eb52e3b8 (diff) | |
| download | linux-next-8d4cbb6d0caf03b0a22be4d6d2198a9edac46517.tar.gz linux-next-8d4cbb6d0caf03b0a22be4d6d2198a9edac46517.zip | |
objtool/klp: Don't set sym->file for section symbols
Section symbols aren't grouped after their corresponding FILE symbols.
Their sym->file should really be NULL rather than whatever random FILE
happened to be last.
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/elf.c')
| -rw-r--r-- | tools/objtool/elf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/objtool/elf.c b/tools/objtool/elf.c index f41280e454ca..d9cee8d5d9e8 100644 --- a/tools/objtool/elf.c +++ b/tools/objtool/elf.c @@ -649,7 +649,7 @@ static int read_symbols(struct elf *elf) if (is_file_sym(sym)) file = sym; - else if (sym->bind == STB_LOCAL) + else if (sym->bind == STB_LOCAL && !is_sec_sym(sym)) sym->file = file; } |
