-fstack-check on Linux x86--Dumb question...

George T. Talbot george@moberg.com
Fri Mar 17 17:11:00 GMT 2000


I've got a program which fails with a SIGSEGV when -fstack-check is turned
on.  Would anyone have more information about how -fstack-check works on an
Intel processor under Linux?

I'm specifically interested in two things:

1)  How does -fstack-check determine whether the stack has been overrun?
2)  Is there a way using GDB, or some other tool of which I'm not aware,
    to find the specific instruction and access address of the SIGSEGV?

I'm using gcc 2.95.2 on Mandrake Linux 7.0 (glibc 2.1.2, I believe).

Thanks.

--
George T. Talbot
george at moberg dot com


More information about the Gcc mailing list