OpenCloudOS-Kernel/arch/sparc/vdso
Masahiro Yamada 893ab00439 kbuild: remove cc-option test of -fno-stack-protector
Some Makefiles already pass -fno-stack-protector unconditionally.
For example, arch/arm64/kernel/vdso/Makefile, arch/x86/xen/Makefile.

No problem report so far about hard-coding this option. So, we can
assume all supported compilers know -fno-stack-protector.

GCC 4.8 and Clang support this option (https://godbolt.org/z/_HDGzN)

Get rid of cc-option from -fno-stack-protector.

Remove CONFIG_CC_HAS_STACKPROTECTOR_NONE, which is always 'y'.

Note:
arch/mips/vdso/Makefile adds -fno-stack-protector twice, first
unconditionally, and second conditionally. I removed the second one.

Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Reviewed-by: Kees Cook <keescook@chromium.org>
Acked-by: Ard Biesheuvel <ardb@kernel.org>
Reviewed-by: Nick Desaulniers <ndesaulniers@google.com>
2020-07-07 11:13:10 +09:00
..
vdso32 sparc,x86: vdso: remove meaningless undefining CONFIG_OPTIMIZE_INLINING 2020-04-07 10:43:42 -07:00
.gitignore .gitignore: add SPDX License Identifier 2020-03-25 11:50:48 +01:00
Makefile kbuild: remove cc-option test of -fno-stack-protector 2020-07-07 11:13:10 +09:00
checkundef.sh sparc: Validate VDSO for undefined symbols. 2018-10-22 16:09:27 -07:00
vclock_gettime.c y2038: vdso: change timespec to __kernel_old_timespec 2019-11-15 14:38:28 +01:00
vdso-layout.lds.S sparc: Fix VDSO build with older binutils. 2018-10-25 10:36:19 -07:00
vdso-note.S vDSO for sparc 2017-11-15 14:21:03 +09:00
vdso.lds.S sparc: Fix VDSO build with older binutils. 2018-10-25 10:36:19 -07:00
vdso2c.c sparc: Improve VDSO instruction patching. 2018-10-22 15:22:14 -07:00
vdso2c.h sparc: Fix VDSO build with older binutils. 2018-10-25 10:36:19 -07:00
vma.c mmap locking API: use coccinelle to convert mmap_sem rwsem call sites 2020-06-09 09:39:14 -07:00