From 5a0af8165ce9590e7a18f1ef4f9badc4dd72c6e6 Mon Sep 17 00:00:00 2001 From: Robert Mustacchi Date: Sat, 24 Oct 2020 17:43:02 -0700 Subject: 13274 enable -fstack-protector-strong by default in user land Reviewed by: Andy Fiddaman Reviewed by: Toomas Soome Approved by: Gordon Ross --- usr/src/tools/Makefile.tools | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'usr/src/tools') diff --git a/usr/src/tools/Makefile.tools b/usr/src/tools/Makefile.tools index aeb9449af3..9fd747751d 100644 --- a/usr/src/tools/Makefile.tools +++ b/usr/src/tools/Makefile.tools @@ -63,6 +63,13 @@ LDFLAGS= $(MAPFILE.NES:%=-Wl,-M%) $(MAPFILE.NED:%=-Wl,-M%) \ # tools. GSHARED = -_cc=-G -_gcc=-shared +# +# To work around a bootstrapping problem, we don't assume that the +# compiler or environment are properly configured to make the stack +# protector work. Disable it right now for the tools. +# +STACKPROTECT = none + # Unset CW_LINKER so we run the default. We don't set LD here to avoid taking # the journey through LD_ALTEXEC unnecessarily. CW_LINKER= -- cgit v1.2.3