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


   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

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