so if i enable ASLR using /proc/sys/kernel/randomize_va_space, already compiled programs ( with out fpic ) will not be randomised ? On Wed, Mar 12, 2014 at 4:24 PM, Raphael S Carvalho <raphael.scarv@xxxxxxxxx> wrote: > > > > On Wed, Mar 12, 2014 at 7:47 AM, ratheesh kannoth <ratheesh.ksz@xxxxxxxxx> > wrote: >> >> If we need ASLR feature, should we compile executable with -fpic ? > > -fPIE -fstack-protector-all > >> >> >> >> >> >> >> -Ratheesh >> -- >> To unsubscribe from this list: send the line "unsubscribe >> linux-c-programming" in >> the body of a message to majordomo@xxxxxxxxxxxxxxx >> More majordomo info at http://vger.kernel.org/majordomo-info.html > > > > > -- > Raphael S. Carvalho -- To unsubscribe from this list: send the line "unsubscribe linux-c-programming" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html