Commit d35b22d1 authored by Shenghou Ma's avatar Shenghou Ma Committed by Russ Cox

cmd/ld: maintain correct headstring needed by windows port.

Fixes build for go_bootstrap.
Fixes #6971.

R=alex.brainman, mattn.jp, rsc
CC=golang-dev
https://golang.org/cl/43130043
parent d24019f0
......@@ -1255,6 +1255,7 @@ setheadtype(char *s)
fprint(2, "unknown header type -H %s\n", s);
errorexit();
}
headstring = s;
HEADTYPE = headtype(s);
}
......
......@@ -138,6 +138,8 @@ main(int argc, char *argv[])
if(HEADTYPE == -1)
HEADTYPE = headtype(goos);
ctxt->headtype = HEADTYPE;
if (headstring == NULL)
headstring = headstr(HEADTYPE);
archinit();
ctxt->linkmode = linkmode;
......
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