cmd/link: do not directly embed Symbols in Link

Mostly done with sed.

Change-Id: Ic8c534a3fdd332b5420d062ee85bb77a30ad1efb
Reviewed-on: https://go-review.googlesource.com/29346
Run-TryBot: Michael Hudson-Doyle <michael.hudson@canonical.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
This commit is contained in:
Michael Hudson-Doyle 2016-09-20 14:59:39 +12:00
parent d284d4ff92
commit d41a7f77c5
16 changed files with 32 additions and 32 deletions

View file

@ -1060,7 +1060,7 @@ func addinitarrdata(ctxt *Link, s *Symbol) {
}
func dosymtype(ctxt *Link) {
for _, s := range ctxt.Allsym {
for _, s := range ctxt.Syms.Allsym {
if len(s.P) > 0 {
if s.Type == obj.SBSS {
s.Type = obj.SDATA
@ -1208,7 +1208,7 @@ func (ctxt *Link) dodata() {
// Collect data symbols by type into data.
var data [obj.SXREF][]*Symbol
for _, s := range ctxt.Allsym {
for _, s := range ctxt.Syms.Allsym {
if !s.Attr.Reachable() || s.Attr.Special() {
continue
}