aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/tools/objtool/include
diff options
context:
space:
mode:
authorJosh Poimboeuf <jpoimboe@kernel.org>2023-05-30 10:20:55 -0700
committerJosh Poimboeuf <jpoimboe@kernel.org>2023-06-07 10:03:14 -0700
commita5bd623653231bce8657978e9d2c2ebfaf19e297 (patch)
tree47436cd52146955cf3d2afa8906b839698867106 /tools/objtool/include
parentobjtool: Remove flags argument from elf_create_section() (diff)
downloadwireguard-linux-a5bd623653231bce8657978e9d2c2ebfaf19e297.tar.xz
wireguard-linux-a5bd623653231bce8657978e9d2c2ebfaf19e297.zip
objtool: Improve reloc naming
- The term "reloc" is overloaded to mean both "an instance of struct reloc" and "a reloc section". Change the latter to "rsec". - For variable names, use "sec" for regular sections and "rsec" for rela sections to prevent them getting mixed up. - For struct reloc variables, use "reloc" instead of "rel" everywhere for consistency. Link: https://lore.kernel.org/r/8b790e403df46f445c21003e7893b8f53b99a6f3.1685464332.git.jpoimboe@kernel.org Signed-off-by: Josh Poimboeuf <jpoimboe@kernel.org>
Diffstat (limited to 'tools/objtool/include')
-rw-r--r--tools/objtool/include/objtool/elf.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/objtool/include/objtool/elf.h b/tools/objtool/include/objtool/elf.h
index 2c28aeeb3cb2..a4e43a69f922 100644
--- a/tools/objtool/include/objtool/elf.h
+++ b/tools/objtool/include/objtool/elf.h
@@ -33,7 +33,7 @@ struct section {
struct rb_root_cached symbol_tree;
struct list_head symbol_list;
struct list_head reloc_list;
- struct section *base, *reloc;
+ struct section *base, *rsec;
struct symbol *sym;
Elf_Data *data;
char *name;