Commit c20ff36f authored by Michael Hudson-Doyle's avatar Michael Hudson-Doyle Committed by Minux Ma

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/9341Reviewed-by: default avatarMinux Ma <minux@golang.org>
parent b6a0450b
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment