Skip to content

objtool: Support implicit addend relocations

Matt Helsley lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 5 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2objtool: Rename rela to reloctools/objtool/arch.h tools/objtool/arch/x86/decode.c tools/objtool/check.c +5 more+209 -2093 replies
2/2objtool: Add support for relocations without addendstools/objtool/elf.c tools/objtool/elf.h tools/objtool/orc_gen.c+135 -202 replies

Reviews trailers per patch

1 of 2 patches has a Reviewed-by or Acked-by.

PatchJulien ThierryKamalesh Babulal
1/2
2/2R-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/2] objtool: Support implicit addend relocations

Future tools that use objtool to process ELF object files may require reading or even modifying relocations with implicit addends. This series cleans up the naming of the relocation struct in objtool, variable names, and function names to be consistent with a more generic use rather than being specific to those applying explicit addends.

Changes since RFC [1]:
* Dropped the second patch and rebased on tip objtool/core with patch[2] from Sami Tolvanen [Josh Poimboeuf]
* Remade the rename patch with a sed script and added script to the commit message to aid backports. [Josh]
* Removed function pointers from last patch. [Josh]
* Added relocation type parameter to elf_create_reloc_section() to match pattern with relocation section rebuilding.

[1] https://lore.kernel.org/lkml/[email protected]
[2] https://lore.kernel.org/lkml/[email protected]/

Matt Helsley (2):
objtool: Rename rela to reloc
objtool: Add support for relocations without addends

 tools/objtool/arch.h            |   2 +-
 tools/objtool/arch/x86/decode.c |   2 +-
 tools/objtool/check.c           | 190 +++++++++++------------
 tools/objtool/check.h           |   2 +-
 tools/objtool/elf.c             | 262 +++++++++++++++++++++++---------
 tools/objtool/elf.h             |  27 ++--
 tools/objtool/orc_gen.c         |  44 +++---
 tools/objtool/special.c         |  22 +--
 8 files changed, 333 insertions(+), 218 deletions(-)

base-commit: 0decf1f8de919782b152daf9c991967a2bac54f0
prerequisite-patch-id: 83ac956b6b4a769cafcdc4abaea4a3bcc3136d6d

Signature · 1 line
2.20.1