diff options
| author | Wei Guangjing <vcc.163@gmail.com> | 2010-12-13 16:41:02 +1100 |
|---|---|---|
| committer | Alex Brainman <alex.brainman@gmail.com> | 2010-12-13 16:41:02 +1100 |
| commit | e04ef7769ec0a4fde622bc64585fa0681f384310 (patch) | |
| tree | dee8a92dc0d5d4a521cb0e8afe1634152a200558 /src/cmd/ld | |
| parent | 1f6b6ca9ba5f9163d154f1fc62df3d989074d53a (diff) | |
| download | go-e04ef7769ec0a4fde622bc64585fa0681f384310.tar.xz | |
Fix windows build.
R=brainman, rsc
CC=golang-dev
https://golang.org/cl/3533041
Diffstat (limited to 'src/cmd/ld')
| -rw-r--r-- | src/cmd/ld/data.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/cmd/ld/data.c b/src/cmd/ld/data.c index 3ca7f0941c..eedfd7930e 100644 --- a/src/cmd/ld/data.c +++ b/src/cmd/ld/data.c @@ -166,7 +166,8 @@ relocsym(Sym *s) continue; if(r->sym != S && (r->sym->type == SDYNIMPORT || r->sym->dynimpname != nil)) - diag("unhandled relocation for %s (rtype %d)", r->sym->name, r->type); + if (thechar != '8' || HEADTYPE != 10) // Windows PE supports relocation references to dynamic import symbols + diag("unhandled relocation for %s (rtype %d)", r->sym->name, r->type); if(r->sym != S && !r->sym->reachable) diag("unreachable sym in relocation: %s %s", s->name, r->sym->name); |
