mirror of
https://github.com/golang/go
synced 2024-11-23 01:30:02 -07:00
cmd/ld: fix windows build
Fixes #4948. R=golang-dev, alex.brainman CC=golang-dev https://golang.org/cl/7445045
This commit is contained in:
parent
776b51850b
commit
8d732368c2
@ -320,12 +320,6 @@ ldpe(Biobuf *f, char *pkg, int64 len, char *pn)
|
||||
goto bad;
|
||||
|
||||
s = sym->sym;
|
||||
if(s->outer != S) {
|
||||
if(s->dupok)
|
||||
continue;
|
||||
diag("%s: duplicate symbol reference: %s in both %s and %s", pn, s->name, s->outer->name, sect->sym->name);
|
||||
errorexit();
|
||||
}
|
||||
if(sym->sectnum == 0) {// extern
|
||||
if(s->type == SDYNIMPORT)
|
||||
s->plt = -2; // flag for dynimport in PE object files.
|
||||
@ -344,6 +338,13 @@ ldpe(Biobuf *f, char *pkg, int64 len, char *pn)
|
||||
|
||||
if(sect == nil)
|
||||
return;
|
||||
|
||||
if(s->outer != S) {
|
||||
if(s->dupok)
|
||||
continue;
|
||||
diag("%s: duplicate symbol reference: %s in both %s and %s", pn, s->name, s->outer->name, sect->sym->name);
|
||||
errorexit();
|
||||
}
|
||||
s->sub = sect->sym->sub;
|
||||
sect->sym->sub = s;
|
||||
s->type = sect->sym->type | SSUB;
|
||||
|
@ -54,8 +54,6 @@ echo.
|
||||
|
||||
if not "%GOHOSTOS%-%GOOS%-%GOARCH%-%CGO_ENABLED%" == "windows-windows-amd64-1" goto norace
|
||||
echo # Testing race detector.
|
||||
echo # skipping test due to bug (http://code.google.com/p/go/issues/detail?id=4948).
|
||||
goto norace
|
||||
go test -race -i flag
|
||||
if errorlevel 1 goto fail
|
||||
go test -race -short flag
|
||||
|
Loading…
Reference in New Issue
Block a user