mirror of
https://github.com/golang/go
synced 2024-11-20 02:14:46 -07:00
cmd/ld: fix OpenBSD (third try)
On OpenBSD don't mark runtime.{g,m} as STT_TLS symbols. R=golang-dev, dave CC=golang-dev https://golang.org/cl/7867046
This commit is contained in:
parent
48ecfc979f
commit
b735eeb323
@ -153,7 +153,7 @@ asmelfsym(void)
|
||||
elfbind = STB_LOCAL;
|
||||
genasmsym(putelfsym);
|
||||
|
||||
if(linkmode == LinkExternal) {
|
||||
if(linkmode == LinkExternal && HEADTYPE != Hopenbsd) {
|
||||
s = lookup("runtime.m", 0);
|
||||
if(s->sect == nil) {
|
||||
cursym = nil;
|
||||
|
Loading…
Reference in New Issue
Block a user