TLS for Android (and iOS)

Dan Olson zans.is.for.cans at yahoo.com
Sun Mar 30 08:44:51 PDT 2014


"Joakim" <joakim at airpost.net> writes:

> I wonder if it'd be easier to pack your own Mach-O sections rather
> than figuring out how to access all their sections and reimplementing
> their TLV functions, assuming they're not available.  You might even
> be able to do it as an llvm patch since the relevant lib/MC/ files
> where llvm packs the TLS data into Mach-O sections seem pretty
> straightforward.

Thinking about this some more. It probably makes sense to have an
optional approach that can be used on any target that does not have
native TLS. This current approach for iOS will only work for Mach-O. I
wonder if the LLVM folks are working toward a generic TLS without OS
support.
-- 
Dan


More information about the digitalmars-d-ldc mailing list