[PATCH] If the user requested a zero-base-shadow sanitizer, infer -pie and -fPIC when appropriate.
Evgeniy Stepanov
eugenis at google.com
Mon Mar 11 01:04:11 PDT 2013
================
Comment at: lib/Driver/ToolChains.cpp:2683
@@ -2680,1 +2682,3 @@
+bool Linux::isPICDefault() const {
+ return SanitizerHasZeroBaseShadow;
----------------
This defaults to PIC even in cases where PIE would be enough. This may result in a performance hit "by default".
Would you consider adding an isPIEDefault() method here?
http://llvm-reviews.chandlerc.com/D502
More information about the cfe-commits
mailing list