aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/ld/lib.c
diff options
context:
space:
mode:
authorShenghou Ma <minux.ma@gmail.com>2013-04-20 02:44:16 +0800
committerShenghou Ma <minux.ma@gmail.com>2013-04-20 02:44:16 +0800
commit0c2b980c49649635d502d9dd98f277f8480fbada (patch)
tree01ae2198f06925e4d2fcaef24278174554d293b2 /src/cmd/ld/lib.c
parent591d4a47aefc74d96ec283abada57868a37d1f19 (diff)
downloadgo-0c2b980c49649635d502d9dd98f277f8480fbada.tar.xz
cmd/ld: don't show cursym in gcc invocation failure message
before: fmt.statictmp_0731:/usr/local/go/pkg/tool/linux_amd64/6l: running gcc failed: unsuccessful exit status 0x100 now: /usr/local/go/pkg/tool/linux_amd64/6l: running gcc failed: unsuccessful exit status 0x100 R=golang-dev, iant, r CC=golang-dev https://golang.org/cl/8827045
Diffstat (limited to 'src/cmd/ld/lib.c')
-rw-r--r--src/cmd/ld/lib.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/cmd/ld/lib.c b/src/cmd/ld/lib.c
index 47339d4e53..6b95ae2aea 100644
--- a/src/cmd/ld/lib.c
+++ b/src/cmd/ld/lib.c
@@ -687,6 +687,7 @@ hostlink(void)
argv[argc++] = p;
w = create(p, 1, 0775);
if(w < 0) {
+ cursym = S;
diag("cannot create %s: %r", p);
errorexit();
}
@@ -698,6 +699,7 @@ hostlink(void)
len -= n;
}
if(close(w) < 0) {
+ cursym = S;
diag("cannot write %s: %r", p);
errorexit();
}
@@ -730,6 +732,7 @@ hostlink(void)
}
if(runcmd(argv) < 0) {
+ cursym = S;
diag("%s: running %s failed: %r", argv0, argv[0]);
errorexit();
}