https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66631
--- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> --- (In reply to Stas Sergeev from comment #3) > The signal handler needs to do the following things: > 1. Restore segment registers (init_handler() func) Why are you doing this, that is the question I am trying to understand here. What signal handler is happening? Because you can't do this under Linux at all. I am also trying to understand if you are writing a kernel/userspace why you can't write this part in pure assembly function instead of using GCC here to do this work.