Skip to content

Commit

Permalink
kbuild: do not remove 'linux' link in scripts/link-vmlinux.sh
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
masahir0y committed Sep 2, 2021
1 parent 8f13051 commit d40aecd
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion scripts/link-vmlinux.sh
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,6 @@ vmlinux_link()
-Wl,-T,${lds} \
${objects} \
-lutil -lrt -lpthread
rm -f linux
fi
}

Expand Down

0 comments on commit d40aecd

Please sign in to comment.