compile with stack checking off

Hi All: How do i ensure that the executable is compiled with stack checking
off? In qnx4, the switch is -0x.

Ran Zhang <rzhang@vamcointernational.com> wrote:

Hi All: How do i ensure that the executable is compiled with stack checking
off? In qnx4, the switch is -0x.

There is no stack checking ala QNX4 with the GNU compilers.

QNX6 does create the stack such that there is an unmapped page at
the bottom to avoid overruns – but this does not have any runtime
issues, and is not an issue for interrupt service routines either,
as there is no code generate to do stack checking (that might crash
the kernel).

If your program overruns the stack, it will just SIGSEGV.

-David

David Gibbs
QNX Training Services
dagibbs@qnx.com