1
0
mirror of https://github.com/golang/go synced 2024-11-13 19:30:22 -07:00

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>
This commit is contained in:
Michael Hudson-Doyle 2015-04-26 16:37:31 +12:00 committed by Minux Ma
parent b6a0450bec
commit c20ff36fe2

View 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