From: Masahiro Yamada Date: Thu, 19 Aug 2021 00:57:38 +0000 (+0900) Subject: kbuild: do not remove 'linux' link in scripts/link-vmlinux.sh X-Git-Tag: v5.15-rc1~98^2~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d40aecd108d2a6413d53f6f8339e787a23150595;p=thirdparty%2Fkernel%2Flinux.git 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 Reviewed-by: Kees Cook --- diff --git a/scripts/link-vmlinux.sh b/scripts/link-vmlinux.sh index a6c4d0bce3bae..7b9c62e4d54ac 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 }