]> Cypherpunks repositories - gostls13.git/commit
cmd/link: set VirtualAddress to 0 for external linker
authorAlex Brainman <alex.brainman@gmail.com>
Mon, 6 Feb 2017 04:18:26 +0000 (15:18 +1100)
committerAlex Brainman <alex.brainman@gmail.com>
Tue, 21 Feb 2017 01:05:55 +0000 (01:05 +0000)
commita7e25562555a508571b63aedadb088eab8fc5a48
treeaa5d8f6b843af30317fc51357207c0f97129732c
parenta37f9d8a17cffc6fb79120fad667b0684fd03bc7
cmd/link: set VirtualAddress to 0 for external linker

This is what gcc does when it generates object files.
And pecoff.doc says: "for simplicity, compilers should
 set this to zero". It is easier to count everything,
when it starts from 0. Make go linker do the same.

For #10776.

Change-Id: Iffa4b3ad86160624ed34adf1c6ba13feba34c658
Reviewed-on: https://go-review.googlesource.com/36976
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/cmd/link/internal/ld/data.go
src/cmd/link/internal/ld/pe.go