* Martin Liška: > The patch adds new no_stack_protect attribute. The change is requested > from kernel folks and is direct equivalent of Clang's no_stack_protector. > Unlike Clang, I chose to name it no_stack_protect because we already > have stack_protect attribute (used with -fstack-protector-explicit). > > First part of the patch contains a small refactoring of an enum, second > implements the functionality.
In glibc, we already have this: /* Used to disable stack protection in sensitive places, like ifunc resolvers and early static TLS init. */ #ifdef HAVE_CC_NO_STACK_PROTECTOR # define inhibit_stack_protector \ __attribute__ ((__optimize__ ("-fno-stack-protector"))) #else # define inhibit_stack_protector #endif Is it broken? Thanks, Florian