https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66491
--- Comment #3 from Andrew Pinski ---
This is how I build my gcc that is not building against a libc:
# glibc will provide ssp as it is new enough
gcc_cv_libc_provides_ssp=yes ${PMAKE} configure-gcc || return 1
This is after doing configure to
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66491
--- Comment #2 from dhowells at redhat dot com ---
Possibly -mcmodel=kernel shouldn't be overloaded, but -fstack-protector should
be - perhaps to have a -fstack-protector-gs option or similar.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66491
--- Comment #1 from dhowells at redhat dot com ---
Configured with:
CXXFLAGS=' -O2 -g -Wformat-security -fstack-protector-strong
--param=ssp-buffer-size=4 -grecord-gcc-switches -mtune=generic ' \
CFLAGS_FOR_TARGET='-g -O2 -Wall -fexceptions' \
A