Skip to content

Various objtool fixes

Josh Poimboeuf lkml netdev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest11 patches 3 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/11objtool: Prevent infinite recursion in noreturn detectiontools/objtool/builtin-check.c+20 -40 replies
2/11objtool: Detect infinite recursiontools/objtool/builtin-check.c+33 -120 replies
3/11objtool: Compile with debugging symbolstools/objtool/Makefile+1 -10 replies
4/11objtool: Fix false positive warnings related to sibling callstools/objtool/builtin-check.c+6 -10 replies
5/11objtool: Add helper macros for traversing instructionstools/objtool/builtin-check.c+55 -730 replies
6/11objtool: Remove superflous INIT_LIST_HEADtools/objtool/builtin-check.c+0 -20 replies
7/11objtool: Rename some variables and functionstools/objtool/builtin-check.c tools/objtool/elf.c tools/objtool/elf.h+54 -520 replies
8/11objtool: Fix false positive warnings for functions with multiple switch statementstools/objtool/builtin-check.c+100 -450 replies
9/11tools/objtool: Copy hashtable.h into tools directorytools/include/asm-generic/bitops/__fls.h tools/include/asm-generic/bitops/fls.h tools/include/asm-generic/bitops/fls64.h +1 more+155 -33 replies
10/11objtool: Add several performance improvementstools/objtool/builtin-check.c tools/objtool/elf.c tools/objtool/elf.h+35 -140 replies
11/11objtool: Only print one warning per functiontools/objtool/builtin-check.c+25 -230 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 00/11] Various objtool fixes

Based on tip/master.

These patches fix all known objtool issues:

- infinite loop
- sibling call false positives
- switch statement jump table fix
- performance improvements
- print one warning per function

Josh Poimboeuf (11):
objtool: Prevent infinite recursion in noreturn detection
objtool: Detect infinite recursion
objtool: Compile with debugging symbols
objtool: Fix false positive warnings related to sibling calls
objtool: Add helper macros for traversing instructions
objtool: Remove superflous INIT_LIST_HEAD
objtool: Rename some variables and functions
objtool: Fix false positive warnings for functions with multiple
switch statements
tools/objtool: Copy hashtable.h into tools directory
objtool: Add several performance improvements
objtool: Only print one warning per function

 tools/include/asm-generic/bitops/__fls.h |   2 +-
 tools/include/asm-generic/bitops/fls.h   |   2 +-
 tools/include/asm-generic/bitops/fls64.h |   2 +-
 tools/include/linux/hashtable.h          | 152 +++++++++++
 tools/objtool/Makefile                   |   2 +-
 tools/objtool/builtin-check.c            | 429 +++++++++++++++++++------------
 tools/objtool/elf.c                      |  37 ++-
 tools/objtool/elf.h                      |  14 +-
 8 files changed, 447 insertions(+), 193 deletions(-)
 create mode 100644 tools/include/linux/hashtable.h
Signature · 1 line
2.4.3