diff options
| author | Michael Hudson-Doyle <michael.hudson@canonical.com> | 2015-04-26 16:37:31 +1200 |
|---|---|---|
| committer | Minux Ma <minux@golang.org> | 2015-04-26 04:53:51 +0000 |
| commit | c20ff36fe2379d313602496ff3c269af2a8a1839 (patch) | |
| tree | cd4dbdf4e67ac47a222673a9857e4f1d1ef6b99e /src | |
| parent | b6a0450bece6820b6a6d272ce7468915c4aaf796 (diff) | |
| download | go-c20ff36fe2379d313602496ff3c269af2a8a1839.tar.xz | |
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 <minux@golang.org>
Diffstat (limited to 'src')
| -rw-r--r-- | src/cmd/internal/ld/data.go | 2 |
1 files changed, 1 insertions, 1 deletions
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 |
