aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/ld
diff options
context:
space:
mode:
authorWei Guangjing <vcc.163@gmail.com>2010-12-13 16:41:02 +1100
committerAlex Brainman <alex.brainman@gmail.com>2010-12-13 16:41:02 +1100
commite04ef7769ec0a4fde622bc64585fa0681f384310 (patch)
treedee8a92dc0d5d4a521cb0e8afe1634152a200558 /src/cmd/ld
parent1f6b6ca9ba5f9163d154f1fc62df3d989074d53a (diff)
downloadgo-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.c3
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);