summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorMasahiro Yamada <masahiroy@kernel.org>2021-08-19 02:57:38 +0200
committerMasahiro Yamada <masahiroy@kernel.org>2021-09-03 01:17:21 +0200
commitd40aecd108d2a6413d53f6f8339e787a23150595 (patch)
tree3beebfacdce11a3b94dfe8faba8a4ff9a6db5ffe /scripts
parentkbuild: merge vmlinux_link() between the ordinary link and Clang LTO (diff)
downloadlinux-d40aecd108d2a6413d53f6f8339e787a23150595.tar.xz
linux-d40aecd108d2a6413d53f6f8339e787a23150595.zip
kbuild: do not remove 'linux' link in scripts/link-vmlinux.sh
arch/um/Makefile passes the -f option to the ln command: linux: vmlinux @echo ' LINK $@' $(Q)ln -f $< $@ So, the hard link is always re-created, and the old one is removed anyway. Signed-off-by: Masahiro Yamada <masahiroy@kernel.org> Reviewed-by: Kees Cook <keescook@chromium.org>
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/link-vmlinux.sh1
1 files changed, 0 insertions, 1 deletions
diff --git a/scripts/link-vmlinux.sh b/scripts/link-vmlinux.sh
index a6c4d0bce3ba..7b9c62e4d54a 100755
--- a/scripts/link-vmlinux.sh
+++ b/scripts/link-vmlinux.sh
@@ -206,7 +206,6 @@ vmlinux_link()
-Wl,-T,${lds} \
${objects} \
-lutil -lrt -lpthread
- rm -f linux
fi
}