diff options
| author | Mark Brown <broonie@kernel.org> | 2024-06-03 12:59:25 +0100 |
|---|---|---|
| committer | Mark Brown <broonie@kernel.org> | 2024-06-03 12:59:25 +0100 |
| commit | 0ae747759930186fbc3ab470ac4e40899c52438c (patch) | |
| tree | d3f2ffa3c6f91f711bac9155320004a34e59adce /scripts/mksysmap | |
| parent | a8bd778958eface44a4931b30f1db5c98c9e6f40 (diff) | |
| parent | c3f38fa61af77b49866b006939479069cd451173 (diff) | |
regmap: Merge up fixes
We need these to get the i.MX8 boards working in CI again.
Diffstat (limited to 'scripts/mksysmap')
| -rwxr-xr-x | scripts/mksysmap | 28 |
1 files changed, 6 insertions, 22 deletions
diff --git a/scripts/mksysmap b/scripts/mksysmap index 57ff5656d566..c12723a04655 100755 --- a/scripts/mksysmap +++ b/scripts/mksysmap @@ -1,22 +1,16 @@ -#!/bin/sh -x -# Based on the vmlinux file create the System.map file +#!/bin/sed -f +# SPDX-License-Identifier: GPL-2.0-only +# +# sed script to filter out symbols that are not needed for System.map, +# or not suitable for kallsyms. The input should be 'nm -n <file>'. +# # System.map is used by module-init tools and some debugging # tools to retrieve the actual addresses of symbols in the kernel. # -# Usage -# mksysmap vmlinux System.map [exclude] - - -##### -# Generate System.map (actual filename passed as second argument) -# The following refers to the symbol type as per nm(1). - # readprofile starts reading symbols when _stext is found, and # continue until it finds a symbol which is not either of 'T', 't', # 'W' or 'w'. # - -${NM} -n ${1} | sed >${2} -e " # --------------------------------------------------------------------------- # Ignored symbol types # @@ -92,13 +86,3 @@ ${NM} -n ${1} | sed >${2} -e " # ppc stub /\.long_branch\./d /\.plt_branch\./d - -# --------------------------------------------------------------------------- -# Ignored kallsyms symbols -# -# If the 3rd parameter exists, symbols from it will be omitted from the output. -# This makes kallsyms have the identical symbol lists in the step 1 and 2. -# Without this, the step2 would get new symbols generated by scripts/kallsyms.c -# when CONFIG_KALLSYMS_ALL is enabled. That might require one more pass. -$(if [ $# -ge 3 ]; then ${NM} ${3} | sed -n '/ U /!s:.* \([^ ]*\)$:/ \1$/d:p'; fi) -" |
