diff --git a/src/cmd/6l/go.c b/src/cmd/6l/go.c index 06eea3407a..10ebe3fdbb 100644 --- a/src/cmd/6l/go.c +++ b/src/cmd/6l/go.c @@ -455,13 +455,13 @@ definetypesigs(void) n = 0; for(i=0; ilink) - if(memcmp(x->name, "sigt·", 6) == 0) + if(memcmp(x->name, "sigt·", 6) == 0 && x->type != Sxxx) n++; all = mal(n*sizeof all[0]); j = 0; for(i=0; ilink) - if(memcmp(x->name, "sigt·", 6) == 0) + if(memcmp(x->name, "sigt·", 6) == 0 && x->type != Sxxx) all[j++] = x; // sort them by name @@ -488,5 +488,4 @@ definetypesigs(void) if(debug['v']) Bprint(&bso, "%5.2f typesigs %d\n", cputime(), n); - } diff --git a/src/cmd/6l/obj.c b/src/cmd/6l/obj.c index 8ecb035b40..a250f1c45c 100644 --- a/src/cmd/6l/obj.c +++ b/src/cmd/6l/obj.c @@ -1063,8 +1063,11 @@ loop: // If we've seen an AGLOBL that said this sym was DUPOK, // ignore any more ADATA we see, which must be // redefinitions. - if(p->from.sym != S && p->from.sym->dupok) + if(p->from.sym != S && p->from.sym->dupok) { + if(debug['v']) + Bprint(&bso, "skipping %s in %s: dupok", p->from.sym->name, pn); goto loop; + } if(edatap == P) datap = p; else @@ -1083,7 +1086,7 @@ loop: if(ntext++ == 0 && s->type != 0 && s->type != SXREF) { /* redefinition, so file has probably been seen before */ if(debug['v']) - diag("skipping: %s: redefinition: %s", pn, s->name); + Bprint(&bso, "skipping: %s: redefinition: %s", pn, s->name); return; } if(curtext != P) { @@ -1260,6 +1263,8 @@ lookup(char *symb, int v) return s; s = mal(sizeof(*s)); + if(debug['v'] > 1) + Bprint(&bso, "lookup %s\n", symb); s->name = malloc(l + 1); memmove(s->name, symb, l);