···11-#!/bin/sh -x22-# Based on the vmlinux file create the System.map file11+#!/bin/sed -f22+# SPDX-License-Identifier: GPL-2.0-only33+#44+# sed script to filter out symbols that are not needed for System.map,55+# or not suitable for kallsyms. The input should be 'nm -n <file>'.66+#37# System.map is used by module-init tools and some debugging48# tools to retrieve the actual addresses of symbols in the kernel.59#66-# Usage77-# mksysmap vmlinux System.map88-99-1010-#####1111-# Generate System.map (actual filename passed as second argument)1212-# The following refers to the symbol type as per nm(1).1313-1410# readprofile starts reading symbols when _stext is found, and1511# continue until it finds a symbol which is not either of 'T', 't',1612# 'W' or 'w'.1713#1818-1919-${NM} -n ${1} | sed >${2} -e "2014# ---------------------------------------------------------------------------2115# Ignored symbol types2216#···8692# ppc stub8793/\.long_branch\./d8894/\.plt_branch\./d8989-"