mirror of
https://github.com/golang/go.git
synced 2025-05-20 06:43:26 +00:00
cmd/link: ignore macho symbols in invalid sections
Restores linker behavior that existed before CL 68930. Hopefully fixes the macOS 10.8 builder. Change-Id: Ib8d6923b59543008cf71c4625addb4e2045cedf6 Reviewed-on: https://go-review.googlesource.com/69170 Run-TryBot: David Crawshaw <crawshaw@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Ian Lance Taylor <iant@golang.org> Reviewed-by: Marvin Stenger <marvin.stenger94@gmail.com>
This commit is contained in:
parent
dd4988fd99
commit
e285f39248
@ -627,7 +627,7 @@ func Load(arch *sys.Arch, syms *sym.Symbols, f *bio.Reader, pkg string, length i
|
|||||||
sect := &c.seg.sect[machsym.sectnum-1]
|
sect := &c.seg.sect[machsym.sectnum-1]
|
||||||
outer := sect.sym
|
outer := sect.sym
|
||||||
if outer == nil {
|
if outer == nil {
|
||||||
return errorf("reference to invalid section %s/%s", sect.segname, sect.name)
|
continue // ignore reference to invalid section
|
||||||
}
|
}
|
||||||
|
|
||||||
if s.Outer != nil {
|
if s.Outer != nil {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user