1
0
mirror of https://github.com/golang/go synced 2024-11-21 21:34:40 -07:00

8l: blind attempt to fix windows build

or at least gather more information

R=ken2
CC=golang-dev
https://golang.org/cl/2515042
This commit is contained in:
Russ Cox 2010-10-15 15:29:25 -04:00
parent 49a835fc97
commit 6e18e8c82f
2 changed files with 3 additions and 2 deletions

View File

@ -268,7 +268,7 @@ main(int argc, char *argv[])
if(INITDAT == -1) if(INITDAT == -1)
INITDAT = 0; INITDAT = 0;
if(INITRND == -1) if(INITRND == -1)
INITRND = PEALIGN; INITRND = 4096;
break; break;
case 11: case 11:
tlsoffset = 0; tlsoffset = 0;

View File

@ -109,7 +109,8 @@ dope(void)
datsect = new_section(".data", segdata.filelen, 0); datsect = new_section(".data", segdata.filelen, 0);
datsect->Characteristics = IMAGE_SCN_CNT_INITIALIZED_DATA| datsect->Characteristics = IMAGE_SCN_CNT_INITIALIZED_DATA|
IMAGE_SCN_MEM_READ|IMAGE_SCN_MEM_WRITE; IMAGE_SCN_MEM_READ|IMAGE_SCN_MEM_WRITE;
INITDAT = PEBASE+datsect->VirtualAddress; if(INITDAT != PEBASE+datsect->VirtualAddress)
diag("INITDAT = %#llux, want %#llux", (vlong)INITDAT, (vlong)(PEBASE+datsect->VirtualAddress));
bsssect = new_section(".bss", segdata.len - segdata.filelen, 1); bsssect = new_section(".bss", segdata.len - segdata.filelen, 1);
bsssect->Characteristics = IMAGE_SCN_CNT_UNINITIALIZED_DATA| bsssect->Characteristics = IMAGE_SCN_CNT_UNINITIALIZED_DATA|