1
0
mirror of https://github.com/golang/go synced 2024-11-20 00:04:43 -07:00

cmd/6l: fix OpenBSD build

Avoid generating TLS relocations on OpenBSD.

R=golang-dev, bradfitz
CC=golang-dev
https://golang.org/cl/7641055
This commit is contained in:
Ian Lance Taylor 2013-03-27 14:32:51 -07:00
parent e3b767a5a1
commit e7fc9a5c57

View File

@ -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;