http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52885

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> 2012-04-05 
23:34:21 UTC ---
I think this is wrong approach to things.  Basically you should have instead
have an option to automake and friends the support for adding only some flags
for non shared libraries.  

Also using -fPIC instead of -fPIE is always ok.  So I doubt there is a really
issue here.  Since the differences between PIC and PIE comes down to if symbols
are overridable.  PIC is conservative at optimizing.

Also how can you tell the difference between compiling for executable and
shared library if you don't supply -fPIC?  So adding -aslr is not going to be
useful really.

Reply via email to