Stack-protector=all inserting stackcheck in __security_check_cookie implementation

I am attempting to implement my own _security_check_cookie function so I can enable stack-protector=all.

When compiled, my implementation of __security_check_cookie has a call to __security_check_cookie inserted to the end of the function, which results in infinite recursion and the compiled program crashing.

with the removal of #[no_stack_check], what is the recommended method of instructing the compiler to not insert a stack check into a specific function?

This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.