aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Crawshaw <crawshaw@golang.org>2017-10-08 10:45:48 -0400
committerDavid Crawshaw <crawshaw@golang.org>2017-10-08 20:14:33 +0000
commite285f39248f7499c4764bb394fd77a591f4dde64 (patch)
tree410effe0c9600696d60112ebeb7e0524572395d7
parentdd4988fd995e54a19781f7caeb49e020602697f6 (diff)
downloadgo-e285f39248f7499c4764bb394fd77a591f4dde64.tar.xz
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>
-rw-r--r--src/cmd/link/internal/loadmacho/ldmacho.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cmd/link/internal/loadmacho/ldmacho.go b/src/cmd/link/internal/loadmacho/ldmacho.go
index 1c43c1b040..bcea6c731a 100644
--- a/src/cmd/link/internal/loadmacho/ldmacho.go
+++ b/src/cmd/link/internal/loadmacho/ldmacho.go
@@ -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]
outer := sect.sym
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 {