diff options
author | Masahiro Yamada <masahiroy@kernel.org> | 2022-09-26 18:02:28 +0900 |
---|---|---|
committer | Masahiro Yamada <masahiroy@kernel.org> | 2022-10-02 18:06:05 +0900 |
commit | aa221f2ea58655f5360e7b0c6fe5482f7c41855e (patch) | |
tree | d323f63f1e92fb8c7597538a0caa51c62d92e81b /scripts/link-vmlinux.sh | |
parent | a2833d1b07ab107db71a18e6f3855f6908886361 (diff) | |
download | linux-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-x | scripts/link-vmlinux.sh | 2 |
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 |