1
0
mirror of https://github.com/golang/go synced 2024-11-14 09:00:21 -07:00
go/src/cmd/link
Alex Brainman a7e2556255 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>
2017-02-21 01:05:55 +00:00
..
internal cmd/link: set VirtualAddress to 0 for external linker 2017-02-21 01:05:55 +00:00
doc.go cmd/link: don't suggest using nm to find -X name 2017-01-02 17:56:17 +00:00
link_test.go cmd/link: handle long symbol names 2016-04-13 20:31:43 +00:00
linkbig_test.go cmd/link: trampoline support for external linking on ARM 2016-10-17 21:38:06 +00:00
main.go cmd/dist: add support for GOARCH=mips{,le} 2016-11-12 00:34:21 +00:00