This is the mail archive of the gcc-patches@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]

Re: [PATCH] Re: Solaris2.7 failing all nested function tests


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


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