This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: how to turn off PIE on Fedora?



On Dec 12, 2003, at 9:22 PM, Per Bothner wrote:


Can any Red Hat engineers shed light on this:

Data seems to move around unpredictably under Fedora Core.
I.e. I run cc1 under gdb to a breakpoint or error, and note
the memory address of some variable.  I then re-run cc1 with
no changes, and the variable has jumped to a different address.
This complicates debugging, and specifically setting conditional
breakpoints.

This presumably is because of PIE "position independent
executables", which is supoosed to increase security.  Fine -
but how can I turn it off for development builds?

PIE also breaks PCH, and hence running the gcc testsuite.


[root@dberlin bin]# grep exec-shield /etc/sysctl.conf kernel.exec-shield = 0 kernel.exec-shield-randomize = 0


(throwing it in sysctl.conf makes it automatically do it for you on bootup, you'll still have to sysctl -w these manually if you don't want to reboot)



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]