summaryrefslogtreecommitdiffstats
path: root/tools/objtool/elf.h
diff options
context:
space:
mode:
authorJosh Poimboeuf <jpoimboe@redhat.com>2016-03-09 07:06:57 +0100
committerIngo Molnar <mingo@kernel.org>2016-03-09 10:48:09 +0100
commita196e17198224cacd2d992f12cb6d81d354de82f (patch)
treeca10c5454682ffc63764c667c6c32fc6a4877dfc /tools/objtool/elf.h
parentobjtool: Remove superflous INIT_LIST_HEAD (diff)
downloadlinux-a196e17198224cacd2d992f12cb6d81d354de82f.tar.xz
linux-a196e17198224cacd2d992f12cb6d81d354de82f.zip
objtool: Rename some variables and functions
Rename some list heads to distinguish them from hash node heads, which are added later in the patch series. Also rename the get_*() functions to add_*(), which is more descriptive: they "add" data to the objtool_file struct. Also rename rodata_rela and text_rela to be clearer: - text_rela refers to a rela entry in .rela.text. - rodata_rela refers to a rela entry in .rela.rodata. Signed-off-by: Josh Poimboeuf <jpoimboe@redhat.com> Cc: Andrew Morton <akpm@linux-foundation.org> Cc: Andy Lutomirski <luto@kernel.org> Cc: Arnaldo Carvalho de Melo <acme@infradead.org> Cc: Arnaldo Carvalho de Melo <acme@kernel.org> Cc: Bernd Petrovitsch <bernd@petrovitsch.priv.at> Cc: Borislav Petkov <bp@alien8.de> Cc: Chris J Arges <chris.j.arges@canonical.com> Cc: Jiri Slaby <jslaby@suse.cz> Cc: Linus Torvalds <torvalds@linux-foundation.org> Cc: Michal Marek <mmarek@suse.cz> Cc: Namhyung Kim <namhyung@gmail.com> Cc: Pedro Alves <palves@redhat.com> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Thomas Gleixner <tglx@linutronix.de> Cc: live-patching@vger.kernel.org Link: http://lkml.kernel.org/r/ee0eca2bba8482aa45758958c5586c00a7b71e62.1457502970.git.jpoimboe@redhat.com Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'tools/objtool/elf.h')
-rw-r--r--tools/objtool/elf.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/objtool/elf.h b/tools/objtool/elf.h
index 66919de57e68..57e4653f8383 100644
--- a/tools/objtool/elf.h
+++ b/tools/objtool/elf.h
@@ -25,8 +25,8 @@
struct section {
struct list_head list;
GElf_Shdr sh;
- struct list_head symbols;
- struct list_head relas;
+ struct list_head symbol_list;
+ struct list_head rela_list;
struct section *base, *rela;
struct symbol *sym;
Elf_Data *elf_data;