Commit e7fc9a5c authored by Ian Lance Taylor's avatar Ian Lance Taylor

cmd/6l: fix OpenBSD build

Avoid generating TLS relocations on OpenBSD.

R=golang-dev, bradfitz
CC=golang-dev
https://golang.org/cl/7641055
parent e3b767a5
......@@ -881,7 +881,8 @@ putrelv:
r = addrel(cursym);
*r = rel;
r->off = curp->pc + andptr - and;
} else if(iself && linkmode == LinkExternal && a->type == D_INDIR+D_FS) {
} else if(iself && linkmode == LinkExternal && a->type == D_INDIR+D_FS
&& HEADTYPE != Hopenbsd) {
Reloc *r;
Sym *s;
......
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