aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/ld/lib.c
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2011-04-14 10:42:48 -0400
committerRuss Cox <rsc@golang.org>2011-04-14 10:42:48 -0400
commitbd43a2d9ff53c0cda30571df8241dcefb9bf6b88 (patch)
tree91e0235293360bd92013db779182acf33926ebbc /src/cmd/ld/lib.c
parent36713a2a53b91e6fbf08af9ee583f49449857a33 (diff)
downloadgo-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.c2
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;