[PATCH v2 0/2] Fix 'faddr2line' for LLVM arm64 builds

From: Will Deacon
Date: Tue Jul 25 2023 - 17:12:14 EST


Hi folks,

This is version two of the patches I sent yesterday attempting to fix
'faddr2line' for LLVM arm64 kernel images.

v1: https://lore.kernel.org/r/20230724174517.15736-1-will@xxxxxxxxxx

Changes since v1 include:
* Dropped the patch adding support for LLVM=1, since Josh said he'd
pick it up.
* Reuse the ignored symbol regex from 'mksysmap' instead of ignoring
symbols based on their type.

Feedback welcome. I've checked that the symbols in System.map for a
defconfig arm64 build are the same with and without these changes, but I
think I'd still like this to spend time in -next if we go down this
route.

Cheers,

Will

Cc: Masahiro Yamada <masahiroy@xxxxxxxxxx>
Cc: Nathan Chancellor <nathan@xxxxxxxxxx>
Cc: Nick Desaulniers <ndesaulniers@xxxxxxxxxx>
Cc: Nicolas Schier <nicolas@xxxxxxxxx>
Cc: Josh Poimboeuf <jpoimboe@xxxxxxxxxx>
Cc: John Stultz <jstultz@xxxxxxxxxx>
Cc: linux-kbuild@xxxxxxxxxxxxxxx

--->8

Will Deacon (2):
scripts/mksysmap: Factor out sed ignored symbols expression into
script
scripts/faddr2line: Constrain readelf output to symbols from
System.map

scripts/faddr2line | 3 +-
scripts/mksysmap | 77 +--------------------------------
scripts/sysmap-ignored-syms.sed | 74 +++++++++++++++++++++++++++++++
3 files changed, 77 insertions(+), 77 deletions(-)
create mode 100644 scripts/sysmap-ignored-syms.sed

--
2.41.0.487.g6d72f3e995-goog