diff options
| author | Russ Cox <rsc@golang.org> | 2013-12-19 16:52:47 -0500 |
|---|---|---|
| committer | Russ Cox <rsc@golang.org> | 2013-12-19 16:52:47 -0500 |
| commit | c9f12d2289252d56aa88263c56be217255d95ee5 (patch) | |
| tree | 452e50c11a00b1563c410b6fc25d56f49d72afca /src/liblink/objfile.c | |
| parent | cbf6ff3b90f5b70e9e7f6aafc1744efbb4761377 (diff) | |
| download | go-c9f12d2289252d56aa88263c56be217255d95ee5.tar.xz | |
liblink: allow either of a pair of conflicting symbols to say dupok
This makes the linker's -X flag work again.
R=iant
CC=bradfitz, golang-codereviews, golang-dev
https://golang.org/cl/44360043
Diffstat (limited to 'src/liblink/objfile.c')
| -rw-r--r-- | src/liblink/objfile.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/liblink/objfile.c b/src/liblink/objfile.c index 94a2561062..52ec90d688 100644 --- a/src/liblink/objfile.c +++ b/src/liblink/objfile.c @@ -503,7 +503,7 @@ readsym(Link *ctxt, Biobuf *f, char *pkg, char *pn) v = ctxt->version; s = linklookup(ctxt, name, v); if(s->type != 0 && s->type != SXREF) { - if(s->type != SBSS && s->type != SNOPTRBSS && (!dupok || !s->dupok)) + if(s->type != SBSS && s->type != SNOPTRBSS && !dupok && !s->dupok) sysfatal("duplicate symbol %s (types %d and %d) in %s and %s", s->name, s->type, t, s->file, pn); if(s->np > 0) s = linklookup(ctxt, ".dup", ndup++); // scratch |
