[PATCH] D53102: Support for the mno-tls-direct-seg-refs flag

Kristina Brooks via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Oct 18 06:23:47 PDT 2018


kristina added a comment.

By the way, out of curiosity is this for anything specific (alternative libc or some user-mode-scheduling implementation)? Not nitpicking, just curious since it's an interesting topic in general and it's frustrating that the architecture is so limited in terms of registers that can be used for TLS/related data unlike newer ARM/ARM64 architectures.

Also FWIW `%gs` is generally free to use under x86_64 Linux which is where I usually place my thread control blocks which doesn't interfere with libc which uses `%fs`. (Just started build/test job, waiting on that for now)


https://reviews.llvm.org/D53102





More information about the cfe-commits mailing list