http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52885
--- Comment #4 from Jeffrey Walton <noloader at gmail dot com> 2012-04-24 04:34:42 UTC --- (In reply to comment #1) > > 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. The compiler driver would make the determination at link time, and pass the appropriate switch to the linker. I did not think it was a difficult concept. My apologies.