aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteve Wills <swills@FreeBSD.org>2015-11-10 21:45:23 +0000
committerSteve Wills <swills@FreeBSD.org>2015-11-10 21:45:23 +0000
commitda8e4525a8a8b91327ad9a18085363852f71ff7b (patch)
tree93c1ef03ac6e4912ced490f9feadf7cc2372c206
parentd4930babe5d2c2a28e67113b23779dab66795fc2 (diff)
downloadports-da8e4525a8a8b91327ad9a18085363852f71ff7b.tar.gz
ports-da8e4525a8a8b91327ad9a18085363852f71ff7b.zip
Notes
-rw-r--r--lang/go/files/patch-src_cmd_link_internal_ld_ldelf.go16
-rw-r--r--lang/go/files/patch-src_cmd_link_internal_ld_lib.go11
2 files changed, 27 insertions, 0 deletions
diff --git a/lang/go/files/patch-src_cmd_link_internal_ld_ldelf.go b/lang/go/files/patch-src_cmd_link_internal_ld_ldelf.go
new file mode 100644
index 000000000000..a877cbd0aa2e
--- /dev/null
+++ b/lang/go/files/patch-src_cmd_link_internal_ld_ldelf.go
@@ -0,0 +1,16 @@
+--- src/cmd/link/internal/ld/ldelf.go.orig 2015-09-09 01:24:01 UTC
++++ src/cmd/link/internal/ld/ldelf.go
+@@ -629,6 +629,13 @@ func ldelf(f *obj.Biobuf, pkg string, le
+ if strings.HasPrefix(sym.name, ".Linfo_string") { // clang does this
+ continue
+ }
++
++ if sym.name == "" && sym.type_ == 0 && sect.name == ".debug_str" {
++ // This reportedly happens with clang 3.7 on ARM.
++ // See issue 13139.
++ continue
++ }
++
+ Diag("%s: sym#%d: ignoring %s in section %d (type %d)", pn, i, sym.name, sym.shndx, sym.type_)
+ continue
+ }
diff --git a/lang/go/files/patch-src_cmd_link_internal_ld_lib.go b/lang/go/files/patch-src_cmd_link_internal_ld_lib.go
new file mode 100644
index 000000000000..42ccc1831277
--- /dev/null
+++ b/lang/go/files/patch-src_cmd_link_internal_ld_lib.go
@@ -0,0 +1,11 @@
+--- src/cmd/link/internal/ld/lib.go.orig 2015-09-09 01:24:02 UTC
++++ src/cmd/link/internal/ld/lib.go
+@@ -1765,7 +1765,7 @@ func genasmsym(put func(*LSym, string, i
+ }
+
+ for s := Ctxt.Allsym; s != nil; s = s.Allsym {
+- if s.Hide != 0 || (s.Name[0] == '.' && s.Version == 0 && s.Name != ".rathole") {
++ if s.Hide != 0 || ((s.Name == "" || s.Name[0] == '.') && s.Version == 0 && s.Name != ".rathole") {
+ continue
+ }
+ switch s.Type & obj.SMASK {