HomeFreeBSD

Limit some cc options based upon features

Description

Limit some cc options based upon features

Limit the use of stack clash protection and zeroregs based upon
compiler features:

  • switch unconditional use of stack clash protection into a compiler feature
  • limit the use of stack clash protection on unsupported architectures (I did not wade into the source of each compiler to determine when support arrived for each architecture, I used the compiler version when it was introduced with what is supported currently)
  • add a safeguard for stack clash protection in places where we have no SSP provisions (we may not need it, but better safe than sorry when something changes or is overridden by the user)
  • limit the use of zeroregs the same way, so that even specifying it will not lead to build failures (useful for universe builds when WITH_ZEROREGS is specified in src.conf)

Differential Revision: https://reviews.freebsd.org/D48724

Details

Provenance
netchildAuthored on Fri, Jan 31, 12:11 PM
Differential Revision
D48724: Limit the use of stack clash protection and zeroregs based upon compiler features
Parents
rG36fdc42c6a4c: mlx5en: Fix SIOCSIFCAPNV
Branches
Unknown
Tags
Unknown