GregorR / musl-cross

A small suite of scripts and patches for building musl libc cross compilers.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

-fstack-protector[-all] causes SEGV with small programs calling only a noreturn func

rofl0r opened this issue · comments

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.

IIRC this was fixed a while ago, but never closed.

not in musl, and the gcc bugreport above wasnt updated for a while so i think it's still open

ping ... needs to be reopened