Messages in this thread | | | Date | Tue, 28 Mar 2023 10:47:26 +0200 (CEST) | From | Miroslav Benes <> | Subject | Re: [PATCH 1/5] objtool: Add '--verbose' option for disassembling affected functions |
| |
> +static inline void objdump_func(struct section *sec, unsigned long offset) > +{ > + struct symbol *sym = find_func_containing(sec, offset);
Unnecessary assignment?
> + const char *script_relative = "scripts/objdump-func"; > + bool is_text = (sec->sh.sh_flags & SHF_EXECINSTR); > + char *cmd, *srctree, *script; > + > + if (is_text) > + sym = find_func_containing(sec, offset); > + if (!sym) > + sym = find_symbol_containing(sec, offset); > + if (!sym) > + return;
Miroslav
| |