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