[dev.link] cmd/link: move macho host files to new loader format

Change-Id: I823b19c0742992dd760c6372428a1936bb7c7e70
Reviewed-on: https://go-review.googlesource.com/c/go/+/200768
Reviewed-by: Jeremy Faller <jeremy@golang.org>
Reviewed-by: Than McIntosh <thanm@google.com>
Run-TryBot: Than McIntosh <thanm@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
This commit is contained in:
Jeremy Faller 2019-10-11 13:58:43 -04:00
parent 24f9238b95
commit cc21e4d130
3 changed files with 52 additions and 14 deletions

View file

@ -477,8 +477,8 @@ func loadObjReloc(l *Loader, r *oReader) {
}
if s.Type != 0 && s.Type != sym.SXREF {
fmt.Println("symbol already processed:", lib, i, s)
panic("symbol already processed")
// We've already seen this symbol, it likely came from a host object.
continue
}
t := sym.AbiSymKindToSymKind[objabi.SymKind(osym.Type)]