https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81490
--- Comment #22 from H. Peter Anvin <hpa at zytor dot com> --- There are other issues, too (we'd have to drop the kernel memory model, probably replace it with the small-pic model) but %gs: addressing is one of those.