]> Cypherpunks repositories - gostls13.git/commit
cmd/link: add all pe section names to pe symbol table
authorAlex Brainman <alex.brainman@gmail.com>
Wed, 8 Feb 2017 02:59:19 +0000 (13:59 +1100)
committerAlex Brainman <alex.brainman@gmail.com>
Tue, 21 Feb 2017 05:52:04 +0000 (05:52 +0000)
commitb660a4b04d0a88e86d15c1235a4d3bdf1efcd12c
tree353992726519b8cdb03ccc3d364c85826a04d0a9
parente9abf1a7166186cdcf84ccfd028c2c66f1ec4788
cmd/link: add all pe section names to pe symbol table

dwarf relocations refer to dwarf section symbols, so dwarf
section symbols must be present in pe symbol table before we
write dwarf relocations.

.ctors pe section already refer to .text symbol.

Write all pe section name symbols into symbol table, so we
can use them whenever we need them.

This CL also simplified some code.

For #10776.

Change-Id: I9b8c680ea75904af90c797a06bbb1f4df19e34b6
Reviewed-on: https://go-review.googlesource.com/36978
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/ldpe.go
src/cmd/link/internal/ld/pe.go