Option: Use GS instead of FS for TLS

svk via cfe-commits cfe-commits at lists.llvm.org
Wed Jul 5 14:38:27 PDT 2017


Hello,

the attached patch introduces a -mtls-gs command line option for clang 
for the x86_64 target.
This option will force the usage of the GS instead of the FS register 
for TLS references and
stack canary references.
This is particularly useful for low-level kernel-side development.

Best regards,
Sven Konietzny
-------------- next part --------------
A non-text attachment was scrubbed...
Name: llvm-tls-gs.patch
Type: text/x-patch
Size: 5312 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20170705/3b3503a3/attachment-0001.bin>


More information about the cfe-commits mailing list