- 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)
Details
Details
- Reviewers
emaste jrtc27 - Commits
- rG1c2ae9233b0e: Limit some cc options based upon features
Diff Detail
Diff Detail
- Repository
- rG FreeBSD src repository
- Lint
Lint Skipped - Unit
Tests Skipped
Event Timeline
Comment Actions
For any future updates can you generate diffs with -U99999 so that context is available in Phabricator.
libc_nossp_pic is (increasingly) misnamed and we should really have a comment explaining what it is; I may take a look at that afterwards.
mk/bsd.compiler.mk | ||
---|---|---|
268–271 | No objection to leaving it in, I'm certain we can assume that if Clang's the compiler it will be at least version 7. Unfortunately we don't explicitly document (or consistently test) the minimum support. | |
268–271 | Sorry, by "it" I mean the ${${X_}COMPILER_VERSION} >= 70000 in the Clang case |