[Issue 9476] Support native TLS on Mac OS X

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Sun Nov 2 18:04:25 PST 2014


https://issues.dlang.org/show_bug.cgi?id=9476

Kevin L <kevin.lamonte at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |kevin.lamonte at gmail.com

--- Comment #10 from Kevin L <kevin.lamonte at gmail.com> ---
Rather than remove it, could the existing non-native OSX TLS model be made
available via compile command-line argument for all platforms?  Something like
"-non-native-tls"?

I am writing a bare-metal kernel (https://github.com/klamonte/cycle) in D
(2.066.1-rc2) and am working on TLS support.  It is made more difficult by
compiling on Linux DMD with the much more complex sections_linux.d DSO model.

I have gotten ModuleInfo to work without too much hassle using a small bit of
linker script:

    .minfo : {
    start_minfo = . ;
    KEEP (*(SORT_NONE(.minfo)))
    end_minfo = . ;
    }

(This BTW continues to work with --gc-sections.)

I'd really like to be able to do similar for TLS, basically do the method
described in the Dr Dobbs article for OSX TLS support but on my Linux system. 
I'll also need TLS in order for exceptions to work later on.

--


More information about the Digitalmars-d-bugs mailing list