1
0
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:
Ian Lance Taylor 2013-03-27 16:00:58 -07:00
parent 48ecfc979f
commit b735eeb323

View File

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