This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Re: Solaris2.7 failing all nested function tests
- To: "Kaveh R. Ghazi" <ghazi at caip dot rutgers dot edu>
- Subject: Re: [PATCH] Re: Solaris2.7 failing all nested function tests
- From: Alexandre Oliva <oliva at lsd dot ic dot unicamp dot br>
- Date: 16 Jan 2000 14:27:50 -0200
- Cc: davem at redhat dot com, gcc-patches at gcc dot gnu dot org, jakub at redhat dot com
- References: <200001161317.IAA28379@caip.rutgers.edu>
On Jan 16, 2000, "Kaveh R. Ghazi" <ghazi@caip.rutgers.edu> wrote:
>> From: Alexandre Oliva <oliva@lsd.ic.unicamp.br>
>> But there is a kernel option that makes stack and data segments
>> non-executable, from Solaris 2.5 on. [...] So maybe the code to
>> enable stack execution would still be useful in this case.
> However its not clear whether you can reenable stack execution once
> the sysadmin has turned it off in the kernel. I would be surprised
> if this was the case. Can you test it?
Ah! I knew we still had some paranoid-protected host somewhere! Just
found it.
Indeed, the new code helps some. Previously, nestfunc-1.c would just
crash with a segv. Now, before crashing, it will print:
mprotect of trampoline code: Permission denied
I find this enough of a reason to leave the code enabled on all
versions of Solaris, assuming it doesn't incur a significant overhead
(I haven't checked). Does anybody disagree?
--
Alexandre Oliva http://www.ic.unicamp.br/~oliva IC-Unicamp, Bra[sz]il
oliva@{lsd.ic.unicamp.br,guarana.{org,com}} aoliva@{acm,computer}.org
oliva@{gnu.org,kaffe.org,{egcs,sourceware}.cygnus.com,samba.org}
** I may forward mail about projects to mailing lists; please use them