Skip to content

objtool: add support for >64k sections

Sami Tolvanen lkml 2 versions Applied

Status from this message: The following commit has been merged into the objtool/core branch of tip:

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest2 patches 2 repliesApplied
  2. v13 patches 9 repliesSuperseded

Changes in v2 from the cover letter

- Dropped the insn_hash optimization as Peter has a nearly similar change queued already.
- Instead of storing the last instruction for each section, use find_insn to locate it.

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/2objtool: use gelf_getsymshndx to handle >64k sectionstools/objtool/elf.c+17 -70 replies
2/2objtool: optimize add_dead_ends for split sectionstools/objtool/check.c+17 -191 reply

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchKees Cook
1/2R-b
2/2R-b

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

Read the v2 thread

Cover letter [PATCH v2 0/2] objtool: add support for >64k sections

This series fixes objtool for binaries with >64k sections, and includes optimizations to reduce the runtime for a binary with ~130k sections from >15 minutes to ~4 seconds.

Changes in v2:
- Dropped the insn_hash optimization as Peter has a nearly similar change queued already.
- Instead of storing the last instruction for each section, use find_insn to locate it.

Sami Tolvanen (2):
objtool: use gelf_getsymshndx to handle >64k sections
objtool: optimize add_dead_ends for split sections

 tools/objtool/check.c | 36 +++++++++++++++++-------------------
 tools/objtool/elf.c   | 24 +++++++++++++++++-------
 2 files changed, 34 insertions(+), 26 deletions(-)

base-commit: 18bf34080c4c3beb6699181986cc97dd712498fe

Signature · 1 line
2.26.1.301.g55bc3eb7cb9-goog