From: Mikkel Krautz Date: Tue, 18 Oct 2011 04:31:55 +0000 (+1100) Subject: ld: bump pe linker version to 3.0 to allow code signing X-Git-Tag: weekly.2011-10-18~29 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=c9bf048337c1a68d467195b3b747073f76e5f063;p=gostls13.git ld: bump pe linker version to 3.0 to allow code signing The Windows signtool.exe thinks our binaries are 'invalid Win32 programs' unless the PE linker version field is 3.0 or greater. This minor change makes it possible to successfully sign gc-built binaries on Windows. R=golang-dev, alex.brainman, rsc CC=golang-dev https://golang.org/cl/5268045 --- diff --git a/src/cmd/ld/pe.c b/src/cmd/ld/pe.c index df6c95976f..2e50490cec 100644 --- a/src/cmd/ld/pe.c +++ b/src/cmd/ld/pe.c @@ -620,7 +620,7 @@ asmbpe(void) set(Magic, 0x10b); // PE32 oh.BaseOfData = d->VirtualAddress; } - set(MajorLinkerVersion, 1); + set(MajorLinkerVersion, 3); set(MinorLinkerVersion, 0); set(SizeOfCode, t->SizeOfRawData); set(SizeOfInitializedData, d->SizeOfRawData);