]> Cypherpunks repositories - gostls13.git/commitdiff
8l: remove unneeded windows check
authorAlex Brainman <alex.brainman@gmail.com>
Thu, 16 Dec 2010 01:19:59 +0000 (12:19 +1100)
committerAlex Brainman <alex.brainman@gmail.com>
Thu, 16 Dec 2010 01:19:59 +0000 (12:19 +1100)
R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/3691042

src/cmd/ld/data.c

index 043798c4555e3efc72c3f23786ed7b6a1e867985..ca580b528f5473cd486d092299b216b2bd03e95e 100644 (file)
@@ -166,8 +166,7 @@ relocsym(Sym *s)
                        continue;
 
                if(r->sym != S && r->sym->type == SDYNIMPORT)
-                       if (thechar != '8' || HEADTYPE != 10) // Windows PE supports relocation references to dynamic import symbols
-                               diag("unhandled relocation for %s (type %d rtype %d)", r->sym->name, r->sym->type, r->type);
+                       diag("unhandled relocation for %s (type %d rtype %d)", r->sym->name, r->sym->type, r->type);
 
                if(r->sym != S && !r->sym->reachable)
                        diag("unreachable sym in relocation: %s %s", s->name, r->sym->name);