Re: Sparc32 Solaris target function calls on stack

Andrew Cagney
2004-03-10T21:52:38Z

> Is anyone planning on converting the sparc32 target over to use
> a target-function-call scheme similar to that of sparc64? ie. so
> that it doesn't have to execute code on the stack?
>
> Apparently there is a security setting on Solaris that prohibits
> executing code on the stack, even on sparc32, to reduce the risk
> of being hacked into, and I'm guessing more and more companies are
> going to be adopting it in these uncertain times.

This is from the NEWS file for 6.1:

> * Revised SPARC target
>
> The SPARC target has been completely revised, incorporating the
> FreeBSD/sparc64 support that was added for GDB 6.0. As a result
> support for LynxOS and SunOS 4 has been dropped. Calling functions
> from within GDB on operating systems with a non-executable stack
> (Solaris, OpenBSD) now works.

It should be working?

Andrew