use of %fs segment register in x86_64 with -fstack-check

Florian Weimer fweimer@redhat.com
Wed Mar 4 09:36:00 GMT 2020


* Maxim Blinov:

> I'm looking at some -fstack-check'ed code, and would appreciate it if
> some gdb x86_64 gurus could double check my understanding of a trivial
> example

What's your motivation for this?  -fstack-check is mostly there to
support certain Ada uses, yet you post a C snippet.

The more generally useful stack overflow detection switch is called
-fstack-clash-protection.

Thanks,
Florian



More information about the Gdb mailing list