 https://github.com/golang/go/issues/13114
 https://gnats.netbsd.org/50777
 
---- a/src/cmd/6l/asm.c	2014-12-11 01:18:10.000000000 +0000
-+++ b/src/cmd/6l/asm.c
-@@ -118,6 +118,8 @@ adddynrel(LSym *s, Reloc *r)
+--- a/src/cmd/6l/asm.c	2015-09-23 06:20:05.000000000 +0200
++++ b/src/cmd/6l/asm.c	2016-03-10 21:00:29.032083210 +0100
+@@ -118,6 +118,8 @@
  		return;
  	
  	case 256 + R_X86_64_GOTPCREL:

 
 
 #define	R_ALPHA_NONE		0	/* No reloc */
@@ -581,39 +596,42 @@ typedef struct {
 #define	R_ARM_COUNT		38	/* Count of defined relocation types. */
 
 

 		if(targ->type != SDYNIMPORT) {
 			// have symbol
 			if(r->off >= 2 && s->p[r->off-2] == 0x8b) {
--- a/src/cmd/8l/asm.c	2015-09-23 06:20:05.000000000 +0200
+++ b/src/cmd/8l/asm.c	2016-03-10 21:02:16.702064080 +0100
@@ -115,6 +115,7 @@
 		return;		
 	
 	case 256 + R_386_GOT32:
+	case 256 + R_386_GOT32X:
 		if(targ->type != SDYNIMPORT) {
 			// have symbol
 			if(r->off >= 2 && s->p[r->off-2] == 0x8b) {
--- a/src/cmd/ld/elf.h	2015-09-23 06:20:05.000000000 +0200
+++ b/src/cmd/ld/elf.h	2016-03-10 21:00:29.033083211 +0100
@@ -478,32 +478,47 @@
  * Relocation types.
  */
 
