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: ghazi at caip dot rutgers dot edu
- Subject: Re: [PATCH] Re: Solaris2.7 failing all nested function tests
- From: "David S. Miller" <davem at redhat dot com>
- Date: Fri, 14 Jan 2000 13:44:09 -0800
- CC: oliva at lsd dot ic dot unicamp dot br, gcc-patches at gcc dot gnu dot org, jakub at redhat dot com
- References: <200001142034.PAA12468@caip.rutgers.edu>
Date: Fri, 14 Jan 2000 15:34:10 -0500 (EST)
From: "Kaveh R. Ghazi" <ghazi@caip.rutgers.edu>
> Why not? I don't think the stack-protection code affects only 64
> bit mode. It's more likely that the code was put in sol2-sld-64.h
> because this feature was only introduced in Solaris7.
Perhaps. I tried compiling nestfunc-1.c in 32 bit mode with an empty
__enable_execute_stack stub function. It compiled and ran. So I
suspected the stack doesn't need enabling in 32 bit mode. How else
could solaris 2.7 run 2.6 and prior binaries which relied on stack
execution?
This is correct, 32-bit applications need not the stack execute
permission enable stub. Only the 64-bit ABI needs this, so I would
search for another solution.
And it is just for the reason you suggest, so that older 32-bit
binaries can continue to run.
Later,
David S. Miller
davem@redhat.com