summaryrefslogtreecommitdiffstats
path: root/tools/objtool/elf.h
diff options
context:
space:
mode:
authorMichael Forney2019-07-10 23:20:11 +0200
committerThomas Gleixner2019-07-18 00:50:14 +0200
commit8e144797f1a67c52e386161863da4614a23ad913 (patch)
tree612c3cd98ac5ccb5c4940edb498059d6e2c7d334 /tools/objtool/elf.h
parentobjtool: Use Elf_Scn typedef instead of assuming struct name (diff)
downloadkernel-qcow2-linux-8e144797f1a67c52e386161863da4614a23ad913.tar.gz
kernel-qcow2-linux-8e144797f1a67c52e386161863da4614a23ad913.tar.xz
kernel-qcow2-linux-8e144797f1a67c52e386161863da4614a23ad913.zip
objtool: Rename elf_open() to prevent conflict with libelf from elftoolchain
The elftoolchain version of libelf has a function named elf_open(). The function name isn't quite accurate anyway, since it also reads all the ELF data. Rename it to elf_read(), which is more accurate. [ jpoimboe: rename to elf_read(); write commit description ] Signed-off-by: Michael Forney <mforney@mforney.org> Signed-off-by: Josh Poimboeuf <jpoimboe@redhat.com> Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Link: https://lkml.kernel.org/r/7ce2d1b35665edf19fd0eb6fbc0b17b81a48e62f.1562793604.git.jpoimboe@redhat.com
Diffstat (limited to 'tools/objtool/elf.h')
-rw-r--r--tools/objtool/elf.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/objtool/elf.h b/tools/objtool/elf.h
index e44ca5d51871..2fe0b0aa741d 100644
--- a/tools/objtool/elf.h
+++ b/tools/objtool/elf.h
@@ -74,7 +74,7 @@ struct elf {
};
-struct elf *elf_open(const char *name, int flags);
+struct elf *elf_read(const char *name, int flags);
struct section *find_section_by_name(struct elf *elf, const char *name);
struct symbol *find_symbol_by_offset(struct section *sec, unsigned long offset);
struct symbol *find_symbol_by_name(struct elf *elf, const char *name);