diff options
author | Peter Zijlstra <peterz@infradead.org> | 2020-03-16 10:36:53 +0100 |
---|---|---|
committer | Peter Zijlstra <peterz@infradead.org> | 2020-03-25 18:28:29 +0100 |
commit | 53d20720bbc8718ef86fdfe53dec0accfb593ef8 (patch) | |
tree | 6faa114eafaaf237759e253acbbf28f1b7c6440a /tools/objtool/elf.h | |
parent | objtool: Optimize find_symbol_*() and read_symbols() (diff) | |
download | linux-53d20720bbc8718ef86fdfe53dec0accfb593ef8.tar.xz linux-53d20720bbc8718ef86fdfe53dec0accfb593ef8.zip |
objtool: Rename find_containing_func()
For consistency; we have:
find_symbol_by_offset() / find_symbol_containing()
find_func_by_offset() / find_containing_func()
fix that.
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Reviewed-by: Miroslav Benes <mbenes@suse.cz>
Acked-by: Josh Poimboeuf <jpoimboe@redhat.com>
Link: https://lkml.kernel.org/r/20200324160924.558470724@infradead.org
Diffstat (limited to 'tools/objtool/elf.h')
-rw-r--r-- | tools/objtool/elf.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/objtool/elf.h b/tools/objtool/elf.h index e4a8d68f2ef7..d18f466829b0 100644 --- a/tools/objtool/elf.h +++ b/tools/objtool/elf.h @@ -91,7 +91,7 @@ struct symbol *find_symbol_containing(struct section *sec, unsigned long offset) struct rela *find_rela_by_dest(struct section *sec, unsigned long offset); struct rela *find_rela_by_dest_range(struct section *sec, unsigned long offset, unsigned int len); -struct symbol *find_containing_func(struct section *sec, unsigned long offset); +struct symbol *find_func_containing(struct section *sec, unsigned long offset); struct section *elf_create_section(struct elf *elf, const char *name, size_t entsize, int nr); struct section *elf_create_rela_section(struct elf *elf, struct section *base); |