]> Cypherpunks repositories - gostls13.git/commitdiff
undo CL 114420043 / b613f2acdf69
authorShenghou Ma <minux@golang.org>
Wed, 6 Aug 2014 06:07:31 +0000 (02:07 -0400)
committerShenghou Ma <minux@golang.org>
Wed, 6 Aug 2014 06:07:31 +0000 (02:07 -0400)
Broke freebsd/amd64 due to exposure of a latent bug.

««« original CL description
cmd/ld: fix operator precedence

LGTM=rsc
R=rsc, iant
CC=golang-codereviews
https://golang.org/cl/114420043
»»»

TBR=dfc
R=dave
CC=golang-codereviews
https://golang.org/cl/120630043

src/cmd/ld/data.c

index 1511d0b5134179758d6000608526692277727440..96eadd479ad1244010e46489725ea30b17c9d6ec 100644 (file)
@@ -145,7 +145,7 @@ relocsym(LSym *s)
                        diag("%s: invalid relocation %d+%d not in [%d,%d)", s->name, off, siz, 0, s->np);
                        continue;
                }
-               if(r->sym != S && ((r->sym->type & SMASK) == 0 || (r->sym->type & SMASK) == SXREF)) {
+               if(r->sym != S && (r->sym->type & SMASK == 0 || r->sym->type & SMASK == SXREF)) {
                        diag("%s: not defined", r->sym->name);
                        continue;
                }