diff options
author | Nick Desaulniers <ndesaulniers@google.com> | 2019-04-23 17:19:31 -0400 |
---|---|---|
committer | Greentime Hu <greentime@andestech.com> | 2019-05-07 05:52:10 -0400 |
commit | 95b6204dbf703f2b6da27cec4c8280f43da8977d (patch) | |
tree | 3f7faeff8335f933fc329b80ab26e0d883229dab | |
parent | c58867615d57859bf5a5aedb13d4646b98d930fe (diff) |
nds32: vdso: drop unnecessary cc-ldoption
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: Greentime Hu <greentime@andestech.com>
Signed-off-by: Greentime Hu <greentime@andestech.com>
-rw-r--r-- | arch/nds32/kernel/vdso/Makefile | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/arch/nds32/kernel/vdso/Makefile b/arch/nds32/kernel/vdso/Makefile index 01a96101d3ae..8792fda19a64 100644 --- a/arch/nds32/kernel/vdso/Makefile +++ b/arch/nds32/kernel/vdso/Makefile | |||
@@ -11,10 +11,8 @@ obj-vdso := note.o datapage.o sigreturn.o gettimeofday.o | |||
11 | targets := $(obj-vdso) vdso.so vdso.so.dbg | 11 | targets := $(obj-vdso) vdso.so vdso.so.dbg |
12 | obj-vdso := $(addprefix $(obj)/, $(obj-vdso)) | 12 | obj-vdso := $(addprefix $(obj)/, $(obj-vdso)) |
13 | 13 | ||
14 | ccflags-y := -shared -fno-common -fno-builtin | 14 | ccflags-y := -shared -fno-common -fno-builtin -nostdlib -fPIC -Wl,-shared -g \ |
15 | ccflags-y += -nostdlib -Wl,-soname=linux-vdso.so.1 \ | 15 | -Wl,-soname=linux-vdso.so.1 -Wl,--hash-style=sysv |
16 | $(call cc-ldoption, -Wl$(comma)--hash-style=sysv) | ||
17 | ccflags-y += -fPIC -Wl,-shared -g | ||
18 | 16 | ||
19 | # Disable gcov profiling for VDSO code | 17 | # Disable gcov profiling for VDSO code |
20 | GCOV_PROFILE := n | 18 | GCOV_PROFILE := n |