Thread overview
[Issue 9476] Support native TLS on Mac OS X
Nov 03, 2014
Kevin L
Nov 11, 2014
John Colvin
Nov 11, 2014
Jacob Carlborg
Nov 14, 2014
Kevin L
Nov 14, 2014
John Colvin
Jan 10, 2016
Jacob Carlborg
May 15, 2019
Jacob Carlborg
November 03, 2014
https://issues.dlang.org/show_bug.cgi?id=9476

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

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

--- Comment #10 from Kevin L <kevin.lamonte@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.

--
November 11, 2014
https://issues.dlang.org/show_bug.cgi?id=9476

John Colvin <john.loughran.colvin@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |john.loughran.colvin@gmail.
                   |                            |com

--- Comment #11 from John Colvin <john.loughran.colvin@gmail.com> ---
I think the time has come that 10.6 support could be dropped, no? It's no longer supported by Apple.

--
November 11, 2014
https://issues.dlang.org/show_bug.cgi?id=9476

--- Comment #12 from Jacob Carlborg <doob@me.com> ---
(In reply to John Colvin from comment #11)
> I think the time has come that 10.6 support could be dropped, no? It's no longer supported by Apple.

Fine by me.

--
November 14, 2014
https://issues.dlang.org/show_bug.cgi?id=9476

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

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

--
November 14, 2014
https://issues.dlang.org/show_bug.cgi?id=9476

--- Comment #13 from John Colvin <john.loughran.colvin@gmail.com> ---
Some related chatter from ghc: https://ghc.haskell.org/trac/ghc/ticket/7602

--
January 10, 2016
https://issues.dlang.org/show_bug.cgi?id=9476

--- Comment #14 from Jacob Carlborg <doob@me.com> ---
https://github.com/D-Programming-Language/dmd/pull/5346

--
May 15, 2019
https://issues.dlang.org/show_bug.cgi?id=9476

Jacob Carlborg <doob@me.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #15 from Jacob Carlborg <doob@me.com> ---
This has been implemented: https://github.com/dlang/dmd/commit/58b204f4957261ef7385c2f17a1e57fbd04169e5.

--