caiminf / freenos

Automatically exported from code.google.com/p/freenos
GNU General Public License v3.0
0 stars 0 forks source link

SCons should check for GCC's -fno-stack-protector flag #1

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Some GCC versions have a stack protector, which should be disabled when
building FreeNOS. If the stack protector is enabled, GCC generates code
which reference the %gs segment register, which is illegal in FreeNOS.

To disable the stack protector the -fno-stack-protector flag may be used.
This flag is unrecognized in GCC versions which do not have the stack
protector,
and will trigger a warning on those versions. Because FreeNOS compiles with
-Werror, this causes compilation to fail.

Original issue reported on code.google.com by coenbijlsma on 7 Aug 2009 at 10:09