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:
parent
e3b767a5a1
commit
e7fc9a5c57
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user