cmd/link: introduce and use peFile.writeSymbol
cmd/link: introduce and use peFile.writeSymbol

Change-Id: I9fcae7bfd647b52d9b4f36f04710ba7921609c02
Reviewed-on: https://go-review.googlesource.com/59422
Reviewed-by: Ian Lance Taylor <87e9c6d529889242b7e184afb632328636553ab4@golang.org>

josharian/go,josharian/go,nawawi/go,codestation/go,CAFxX/go,josharian/go,cloudflare/go,golang/go,Cofyc/go,cloudflare/go,nawawi/go,golang/go,cloudflare/go,josharian/go,golang/go,cloudflare/go,CAFxX/go,cloudflare/go,Cofyc/go,codestation/go,codestation/go,josharian/go,golang/go,cloudflare/go,codestation/go,akutz/go,polyverse-security/go,cloudflare/go,CAFxX/go,akutz/go,polyverse-security/go,nawawi/go,polyverse-security/go,nawawi/go,codestation/go,polyverse-security/go,nawawi/go,polyverse-security/go,CAFxX/go,akutz/go,golang/go,CAFxX/go,codestation/go,akutz/go,cloudflare/go,CAFxX/go,golang/go,Cofyc/go,akutz/go,golang/go,Cofyc/go,golang/go,Cofyc/go,polyverse-security/go,CAFxX/go,CAFxX/go,codestation/go,Cofyc/go,akutz/go,josharian/go,polyverse-security/go,Cofyc/go,polyverse-security/go,nawawi/go,nawawi/go,codestation/go,josharian/go,josharian/go,christopher-henderson/Go,Cofyc/go,akutz/go,nawawi/go,akutz/go