Also, disallow specifying -no-pie/-nopie along with -static-pie.
Details
Details
- Reviewers
saugustine - Commits
- rZORGe228c14618bf: Let -static-pie win if it is specified along with -pie or -static.
rGe228c14618bf: Let -static-pie win if it is specified along with -pie or -static.
rG8692af253c93: Let -static-pie win if it is specified along with -pie or -static.
rL361312: Let -static-pie win if it is specified along with -pie or -static.
rC361312: Let -static-pie win if it is specified along with -pie or -static.
Diff Detail
Diff Detail
- Repository
- rC Clang
Event Timeline
clang/lib/Driver/ToolChains/Gnu.cpp | ||
---|---|---|
311 ↗ | (On Diff #192342) | It's not clear to me that the command line -static-pie -no-pie should result in static-pie, given the way the rest of that function is coded. I might make it a ternary enum: "nothing" "pie" "static-pie" with the last one winning. That method seems more consistent with current behavior. This would allow anyone checking the state of pie to use a single function and just check the result. |
Comment Actions
Let -static-pie win if specified along with -pie or -static.
Also, treat specifying -nopie/-no-pie along with -static-pie as an error.
Comment Actions
PTAL
clang/lib/Driver/ToolChains/Gnu.cpp | ||
---|---|---|
311 ↗ | (On Diff #192342) | static-pie is now handled in its own separate function below. |