Re: [PATCH 0/3] objtool: add support for >64k sections

From: Kees Cook
Date: Tue Apr 21 2020 - 16:11:10 EST


On Tue, Apr 21, 2020 at 11:07:21AM -0700, Sami Tolvanen wrote:
> 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.
>
> Sami Tolvanen (3):
> objtool: use gelf_getsymshndx to handle >64k sections
> objtool: optimize insn_hash for split sections
> objtool: optimize add_dead_ends for split sections
>
> tools/objtool/check.c | 48 ++++++++++++++++++++++++++-----------------
> tools/objtool/check.h | 9 ++++++++
> tools/objtool/elf.c | 24 +++++++++++++++-------
> tools/objtool/elf.h | 1 +
> 4 files changed, 56 insertions(+), 26 deletions(-)
>
>
> base-commit: ae83d0b416db002fe95601e7f97f64b59514d936

Awesome; thanks for sending these. I suspect they'll help with FGKASLR
as well.

--
Kees Cook