Commit c9bf0483 authored by Mikkel Krautz's avatar Mikkel Krautz Committed by Alex Brainman

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
parent 82704f04
...@@ -620,7 +620,7 @@ asmbpe(void) ...@@ -620,7 +620,7 @@ asmbpe(void)
set(Magic, 0x10b); // PE32 set(Magic, 0x10b); // PE32
oh.BaseOfData = d->VirtualAddress; oh.BaseOfData = d->VirtualAddress;
} }
set(MajorLinkerVersion, 1); set(MajorLinkerVersion, 3);
set(MinorLinkerVersion, 0); set(MinorLinkerVersion, 0);
set(SizeOfCode, t->SizeOfRawData); set(SizeOfCode, t->SizeOfRawData);
set(SizeOfInitializedData, d->SizeOfRawData); set(SizeOfInitializedData, d->SizeOfRawData);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment