[Bug lto/49703] -flto makes stack executable by default

marcus at jet dot franken.de gcc-bugzilla@gcc.gnu.org
Mon Jul 11 12:12:00 GMT 2011


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

--- Comment #2 from marcus at jet dot franken.de 2011-07-11 12:11:35 UTC ---
Created attachment 24738
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=24738
xx.c

gcc -O2 -flto -o xx xx.c
readelf -a xx|grep GNU_STACK

should NOT show "RWE" but only "RW"



More information about the Gcc-bugs mailing list