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; }