sh: vsyscall: drop unnecessary cc-ldoption
authorNick Desaulniers <ndesaulniers@google.com>
Wed, 24 Apr 2019 18:02:21 +0000 (11:02 -0700)
committerMasahiro Yamada <yamada.masahiro@socionext.com>
Sat, 18 May 2019 02:29:01 +0000 (11:29 +0900)
Towards the goal of removing cc-ldoption, it seems that --hash-style=
was added to binutils 2.17.50.0.2 in 2006. The minimal required version
of binutils for the kernel according to
Documentation/process/changes.rst is 2.20.

Link: https://gcc.gnu.org/ml/gcc/2007-01/msg01141.html
Cc: clang-built-linux@googlegroups.com
Suggested-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Signed-off-by: Nick Desaulniers <ndesaulniers@google.com>
Acked-by: Yoshinori Sato <ysato@users.sourceforge.jp>
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
arch/sh/kernel/vsyscall/Makefile

index 5db6579bc44cac0cef14a5619c03026ab724fcf6..6e86644480488f692753a84950ea25e8235985c7 100644 (file)
@@ -15,8 +15,7 @@ quiet_cmd_syscall = SYSCALL $@
 
 export CPPFLAGS_vsyscall.lds += -P -C -Ush
 
-vsyscall-flags = -shared -s -Wl,-soname=linux-gate.so.1 \
-               $(call cc-ldoption, -Wl$(comma)--hash-style=sysv)
+vsyscall-flags = -shared -s -Wl,-soname=linux-gate.so.1 -Wl,--hash-style=sysv
 
 SYSCFLAGS_vsyscall-trapa.so    = $(vsyscall-flags)