diff options
| author | Russ Cox <rsc@golang.org> | 2011-04-14 10:42:48 -0400 |
|---|---|---|
| committer | Russ Cox <rsc@golang.org> | 2011-04-14 10:42:48 -0400 |
| commit | bd43a2d9ff53c0cda30571df8241dcefb9bf6b88 (patch) | |
| tree | 91e0235293360bd92013db779182acf33926ebbc /src/cmd/ld/lib.c | |
| parent | 36713a2a53b91e6fbf08af9ee583f49449857a33 (diff) | |
| download | go-bd43a2d9ff53c0cda30571df8241dcefb9bf6b88.tar.xz | |
ld: defend against some broken object files
Fixes #1698.
Fixes #1699.
R=ken2
CC=golang-dev
https://golang.org/cl/4419041
Diffstat (limited to 'src/cmd/ld/lib.c')
| -rw-r--r-- | src/cmd/ld/lib.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cmd/ld/lib.c b/src/cmd/ld/lib.c index 8cd570463c..2b1674ff29 100644 --- a/src/cmd/ld/lib.c +++ b/src/cmd/ld/lib.c @@ -438,7 +438,7 @@ ldobj(Biobuf *f, char *pkg, int64 len, char *pn, int whence) return; } t = smprint("%s %s %s", getgoos(), thestring, getgoversion()); - if(strcmp(line+10, t) != 0) { + if(strcmp(line+10, t) != 0 && !debug['f']) { diag("%s: object is [%s] expected [%s]", pn, line+10, t); free(t); return; |
