]> www.infradead.org Git - users/jedix/linux-maple.git/commit
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>
Fri, 27 Aug 2021 05:07:07 +0000 (14:07 +0900)
commiteefe4ee0bd0c214e93e359c0590179fe5acf7e1f
treea9f2d6dde47a459e76d1a03c7f088cdcc77dfb20
parent2174547d52e9b359f67d601ecb7fb22ca842b4c1
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