]> git.ipfire.org Git - thirdparty/linux.git/commit
objtool: Improve reloc naming
authorJosh Poimboeuf <jpoimboe@kernel.org>
Tue, 30 May 2023 17:20:55 +0000 (10:20 -0700)
committerJosh Poimboeuf <jpoimboe@kernel.org>
Wed, 7 Jun 2023 17:03:14 +0000 (10:03 -0700)
commita5bd623653231bce8657978e9d2c2ebfaf19e297
tree47436cd52146955cf3d2afa8906b839698867106
parent2707579dfa615a5dda4aabb92e433f03a87b5ec5
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>
tools/objtool/check.c
tools/objtool/elf.c
tools/objtool/include/objtool/elf.h