-fstack-protector[-all] causes SEGV with small programs calling only a noreturn func
rofl0r opened this issue · comments
rofl0r commented
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58245
gcc generates a stack protector prologue accessing TLS, but not the epilogue which would pull in the TLS init code, when a noreturn func like exit() is called.
this causes small configure checks to fail when -fstack-protector[-all] is active.
Gregor Richards commented
IIRC this was fixed a while ago, but never closed.
rofl0r commented
not in musl, and the gcc bugreport above wasnt updated for a while so i think it's still open
rofl0r commented
ping ... needs to be reopened