kbuild: merge vmlinux_link() between ARCH=um and other architectures
authorMasahiro Yamada <masahiroy@kernel.org>
Thu, 19 Aug 2021 00:57:39 +0000 (09:57 +0900)
committerMasahiro Yamada <masahiroy@kernel.org>
Thu, 2 Sep 2021 23:17:21 +0000 (08:17 +0900)
commit5df77ad61fd71b1b342ba40d913ad5595480691c
tree7fafd7e1afbea474a461fd4613118c330650b220
parentd40aecd108d2a6413d53f6f8339e787a23150595
kbuild: merge vmlinux_link() between ARCH=um and other architectures

For ARCH=um, ${CC} is used as the linker driver. Hence, the linker
options are prefixed with -Wl, .

Merge the similar code.

I replaced the -T option with the long option --script= so that it
works well with/without ${wl}.

Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Reviewed-by: Kees Cook <keescook@chromium.org>
scripts/link-vmlinux.sh