From: Michael Hudson-Doyle Date: Sun, 26 Apr 2015 04:37:31 +0000 (+1200) Subject: cmd/internal/ld: R_TLS_LE is fine on Darwin too X-Git-Tag: go1.5beta1~913 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=c20ff36fe2379d313602496ff3c269af2a8a1839;p=gostls13.git cmd/internal/ld: R_TLS_LE is fine on Darwin too Sorry about this. Fixes #10575 Change-Id: I2de23be68e7d822d182e5a0d6a00c607448d861e Reviewed-on: https://go-review.googlesource.com/9341 Reviewed-by: Minux Ma --- diff --git a/src/cmd/internal/ld/data.go b/src/cmd/internal/ld/data.go index 07f26200c8..9a34828026 100644 --- a/src/cmd/internal/ld/data.go +++ b/src/cmd/internal/ld/data.go @@ -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