From d5dffb9f29ab9548ef1e8f03e8120f9fb611781f Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Tue, 19 Oct 2010 18:17:07 -0400 Subject: [PATCH] 8l: fix references to INITDAT in windows pe.c R=ken2 CC=golang-dev https://golang.org/cl/2588041 --- src/cmd/ld/pe.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cmd/ld/pe.c b/src/cmd/ld/pe.c index da7bb729236..4351c7c57c7 100644 --- a/src/cmd/ld/pe.c +++ b/src/cmd/ld/pe.c @@ -110,8 +110,8 @@ dope(void) datsect = new_section(".data", segdata.filelen, 0); datsect->Characteristics = IMAGE_SCN_CNT_INITIALIZED_DATA| IMAGE_SCN_MEM_READ|IMAGE_SCN_MEM_WRITE; - if(INITDAT != PEBASE+datsect->VirtualAddress) - diag("INITDAT = %#llux, want %#llux", (vlong)INITDAT, (vlong)(PEBASE+datsect->VirtualAddress)); + if(segdata.vaddr != PEBASE+datsect->VirtualAddress) + diag("segdata.vaddr = %#llux, want %#llux", (vlong)segdata.vaddr, (vlong)(PEBASE+datsect->VirtualAddress)); bsssect = new_section(".bss", segdata.len - segdata.filelen, 1); bsssect->Characteristics = IMAGE_SCN_CNT_UNINITIALIZED_DATA|