]> Cypherpunks repositories - gostls13.git/commitdiff
8l: fix windows build.
authorWei Guangjing <vcc.163@gmail.com>
Sat, 16 Oct 2010 03:37:14 +0000 (23:37 -0400)
committerRuss Cox <rsc@golang.org>
Sat, 16 Oct 2010 03:37:14 +0000 (23:37 -0400)
R=rsc, brainman
CC=golang-dev
https://golang.org/cl/2543042

src/cmd/ld/pe.c
src/cmd/ld/pe.h

index 0821af268938216540766e0a0540649c86ae1f2a..ea978a35645f64af808960ab86c5f22f703dfdc4 100644 (file)
@@ -96,6 +96,7 @@ pewrite(void)
        for (i=0; i<nsect; i++)
                for (j=0; j<sizeof(sh[i]); j++)
                        cput(((char*)&sh[i])[j]);
+       strnput("", PERESERVE-0x400);
 }
 
 void
index b64dd97c07f8f964a8bc04b64ed826f7a0f861df..cb9d0e91132940e5d8928ace251d3a1d5c97de4b 100644 (file)
@@ -72,8 +72,8 @@ typedef struct {
        uint32 FirstThunk;
 } IMAGE_IMPORT_DESCRIPTOR;
 
-#define PERESERVE      0x400
-#define PEALIGN                0x200
+#define PERESERVE      0x1000
+#define PEALIGN                0x1000
 #define PEBASE         0x00400000
 
 enum {