]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/ld: if we fail from an unexpected PE flags value, print it
authorIan Lance Taylor <iant@golang.org>
Fri, 12 Apr 2013 14:58:50 +0000 (07:58 -0700)
committerIan Lance Taylor <iant@golang.org>
Fri, 12 Apr 2013 14:58:50 +0000 (07:58 -0700)
R=golang-dev, minux.ma, r
CC=golang-dev
https://golang.org/cl/8709043

src/cmd/ld/ldpe.c

index 98923bfbf6d6f9c5991c44f95bb4804a89af87e1..52134405fb649d22d8591c7f2a8aea1943da3b75 100644 (file)
@@ -232,7 +232,7 @@ ldpe(Biobuf *f, char *pkg, int64 len, char *pn)
                                s->type = STEXT;
                                break;
                        default:
-                               werrstr("unexpected flags for PE section %s", sect->name);
+                               werrstr("unexpected flags %#08x for PE section %s", sect->sh.Characteristics, sect->name);
                                goto bad;
                }
                s->p = sect->base;