PCH and exec-shield...
Jakub Jelinek
jakub@redhat.com
Tue Mar 2 19:55:00 GMT 2004
On Tue, Mar 02, 2004 at 12:22:22PM -0700, law@redhat.com wrote:
> >If it isn't, it probably should be there as well. I think a
> >change to changes.html for 3.4 would be good for this - perhaps in the
> >PCH section.
> Yes, that would probably be wise.
>
> Alternately, I believe we could have the build process mark cc1plus and
> friends as not needing/wanting the exec-shield functionality. IIRC there
> is a program you can run which twiddles bits in the ELF headers/sections
> which allow you to control exec-shield on a per-binary basis.
I assume the problem is not with exec-shield itself, but with address space
randomization. There is a way to turn this on/off for all
children spawned from a process via personality, but it is on IA-32 only
ATM. Once there is some way to turn randomization off on all architectures,
IMHO the GCC driver and GDB should turn randomization off (in the latter
case only by default, with possibility to override if needed).
Jakub
More information about the Gcc
mailing list