]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/internal/ld: R_TLS_LE is fine on Darwin too
authorMichael Hudson-Doyle <michael.hudson@canonical.com>
Sun, 26 Apr 2015 04:37:31 +0000 (16:37 +1200)
committerMinux Ma <minux@golang.org>
Sun, 26 Apr 2015 04:53:51 +0000 (04:53 +0000)
Sorry about this.

Fixes #10575

Change-Id: I2de23be68e7d822d182e5a0d6a00c607448d861e
Reviewed-on: https://go-review.googlesource.com/9341
Reviewed-by: Minux Ma <minux@golang.org>
src/cmd/internal/ld/data.go

index 07f26200c80e9b0672097e46c4feff5819869a39..9a34828026a0729a66ac7afae72309fe78d6291e 100644 (file)
@@ -412,7 +412,7 @@ func relocsym(s *LSym) {
                                break
                        }
 
-                       if Iself || Ctxt.Headtype == obj.Hplan9 {
+                       if Iself || Ctxt.Headtype == obj.Hplan9 || Ctxt.Headtype == obj.Hdarwin {
                                o = int64(Ctxt.Tlsoffset) + r.Add
                        } else if Ctxt.Headtype == obj.Hwindows {
                                o = r.Add