lkml.org 
[lkml]   [2023]   [Mar]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [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

\
 
 \ /
  Last update: 2023-03-28 10:48    [W:0.810 / U:0.780 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site