1
0
mirror of https://github.com/golang/go synced 2024-10-04 10:21:21 -06:00

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
This commit is contained in:
Shenghou Ma 2013-12-17 07:36:01 -05:00 committed by Russ Cox
parent d24019f0fe
commit d35b22d128
2 changed files with 3 additions and 0 deletions

View File

@ -1255,6 +1255,7 @@ setheadtype(char *s)
fprint(2, "unknown header type -H %s\n", s);
errorexit();
}
headstring = s;
HEADTYPE = headtype(s);
}

View File

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