]> Cypherpunks repositories - gostls13.git/commitdiff
8l: suppress emitting DWARF in Windows PE.
authorAlex Brainman <alex.brainman@gmail.com>
Thu, 2 Sep 2010 07:00:24 +0000 (17:00 +1000)
committerAlex Brainman <alex.brainman@gmail.com>
Thu, 2 Sep 2010 07:00:24 +0000 (17:00 +1000)
Fixes #1064.

R=rsc, lvd, vcc
CC=golang-dev
https://golang.org/cl/2104042

src/cmd/8l/asm.c

index f110f6017675c2087bccc9f49ea382bffc8a9285..89d0fca3ce0087f56b5c6cd2cb366fa9276bb59b 100644 (file)
@@ -651,7 +651,7 @@ asmb(void)
                lputl(symsize);
                lputl(lcsize);
                cflush();
-                if(!debug['s']) {
+                if(HEADTYPE != 10 && !debug['s']) {
                         seek(cout, symo+8+symsize+lcsize, 0);
                         if(debug['v'])
                                Bprint(&bso, "%5.2f dwarf\n", cputime());