summaryrefslogtreecommitdiffstats
path: root/scripts/link-vmlinux.sh
diff options
context:
space:
mode:
authorMasahiro Yamada <masahiroy@kernel.org>2022-09-26 18:02:28 +0900
committerMasahiro Yamada <masahiroy@kernel.org>2022-10-02 18:06:05 +0900
commitaa221f2ea58655f5360e7b0c6fe5482f7c41855e (patch)
treed323f63f1e92fb8c7597538a0caa51c62d92e81b /scripts/link-vmlinux.sh
parenta2833d1b07ab107db71a18e6f3855f6908886361 (diff)
downloadlinux-aa221f2ea58655f5360e7b0c6fe5482f7c41855e.tar.gz
linux-aa221f2ea58655f5360e7b0c6fe5482f7c41855e.tar.bz2
linux-aa221f2ea58655f5360e7b0c6fe5482f7c41855e.zip
kallsyms: take the input file instead of reading stdin
This gets rid of the pipe operator connected with 'cat'. Also use getopt_long() to parse the command line. Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Diffstat (limited to 'scripts/link-vmlinux.sh')
-rwxr-xr-xscripts/link-vmlinux.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/link-vmlinux.sh b/scripts/link-vmlinux.sh
index 6492c0862657..2782c5d1518b 100755
--- a/scripts/link-vmlinux.sh
+++ b/scripts/link-vmlinux.sh
@@ -157,7 +157,7 @@ kallsyms()
fi
info KSYMS ${2}
- cat ${1} | scripts/kallsyms ${kallsymopt} > ${2}
+ scripts/kallsyms ${kallsymopt} ${1} > ${2}
}
# Perform one step in kallsyms generation, including temporary linking of