Add a -z flag to use GS for 64-bit TLS.
This MR allows ld
to accept the option -z use-gs-for-tls
, which is only meant to be used in kernel mode.
I have tested that the whole Redox build process works when using this patch. It is backwards compatible, and can be used to output both FS-based and GS-based TLS.
Edited by Jacob Lorentzon