Blame SOURCES/binutils-2.27-suppress-R_X86_64_GOTPCRELX.patch

be6651
--- binutils.orig/gas/config/tc-i386.c	2017-10-25 12:52:19.977290474 +0100
be6651
+++ binutils-2.27/gas/config/tc-i386.c	2017-10-25 15:09:15.572415126 +0100
be6651
@@ -10655,14 +10655,7 @@ i386_validate_fix (fixS *fixp)
be6651
 	    {
be6651
 	      if (!object_64bit)
be6651
 		abort ();
be6651
-#if defined (OBJ_ELF) || defined (OBJ_MAYBE_ELF)
be6651
-	      if (fixp->fx_tcbit2)
be6651
-		fixp->fx_r_type = (fixp->fx_tcbit
be6651
-				   ? BFD_RELOC_X86_64_REX_GOTPCRELX
be6651
-				   : BFD_RELOC_X86_64_GOTPCRELX);
be6651
-	      else
be6651
-#endif
be6651
-		fixp->fx_r_type = BFD_RELOC_X86_64_GOTPCREL;
be6651
+	      fixp->fx_r_type = BFD_RELOC_X86_64_GOTPCREL;
be6651
 	    }
be6651
 	  else
be6651
 	    {
be6651
@@ -10674,14 +10667,6 @@ i386_validate_fix (fixS *fixp)
be6651
 	  fixp->fx_subsy = 0;
be6651
 	}
be6651
     }
be6651
-#if defined (OBJ_ELF) || defined (OBJ_MAYBE_ELF)
be6651
-  else if (!object_64bit)
be6651
-    {
be6651
-      if (fixp->fx_r_type == BFD_RELOC_386_GOT32
be6651
-	  && fixp->fx_tcbit2)
be6651
-	fixp->fx_r_type = BFD_RELOC_386_GOT32X;
be6651
-    }
be6651
-#endif
be6651
 }
be6651
 
be6651
 arelent *
be6651
diff -rup binutils.orig/gas/testsuite/gas/i386/got.d binutils-2.27/gas/testsuite/gas/i386/got.d
be6651
--- binutils.orig/gas/testsuite/gas/i386/got.d	2017-10-25 12:52:20.045289685 +0100
be6651
+++ binutils-2.27/gas/testsuite/gas/i386/got.d	2017-10-25 15:19:02.458621604 +0100
be6651
@@ -8,23 +8,23 @@ Disassembly of section .text:
be6651
 
be6651
 0+ <_start>:
be6651
 [ 	]*[a-f0-9]+:	b8 00 00 00 00       	mov    \$0x0,%eax	1: R_386_GOT32	foo
be6651
-[ 	]*[a-f0-9]+:	8b 05 00 00 00 00    	mov    0x0,%eax	7: R_386_GOT32X	foo
be6651
-[ 	]*[a-f0-9]+:	8b 80 00 00 00 00    	mov    0x0\(%eax\),%eax	d: R_386_GOT32X	foo
be6651
+[ 	]*[a-f0-9]+:	8b 05 00 00 00 00    	mov    0x0,%eax	7: R_386_GOT32	foo
be6651
+[ 	]*[a-f0-9]+:	8b 80 00 00 00 00    	mov    0x0\(%eax\),%eax	d: R_386_GOT32	foo
be6651
 [ 	]*[a-f0-9]+:	05 00 00 00 00       	add    \$0x0,%eax	12: R_386_GOT32	foo
be6651
-[ 	]*[a-f0-9]+:	03 05 00 00 00 00    	add    0x0,%eax	18: R_386_GOT32X	foo
be6651
-[ 	]*[a-f0-9]+:	03 80 00 00 00 00    	add    0x0\(%eax\),%eax	1e: R_386_GOT32X	foo
be6651
-[ 	]*[a-f0-9]+:	ff 15 00 00 00 00    	call   \*0x0	24: R_386_GOT32X	foo
be6651
-[ 	]*[a-f0-9]+:	ff 90 00 00 00 00    	call   \*0x0\(%eax\)	2a: R_386_GOT32X	foo
be6651
-[ 	]*[a-f0-9]+:	ff 25 00 00 00 00    	jmp    \*0x0	30: R_386_GOT32X	foo
be6651
-[ 	]*[a-f0-9]+:	ff a0 00 00 00 00    	jmp    \*0x0\(%eax\)	36: R_386_GOT32X	foo
be6651
+[ 	]*[a-f0-9]+:	03 05 00 00 00 00    	add    0x0,%eax	18: R_386_GOT32	foo
be6651
+[ 	]*[a-f0-9]+:	03 80 00 00 00 00    	add    0x0\(%eax\),%eax	1e: R_386_GOT32	foo
be6651
+[ 	]*[a-f0-9]+:	ff 15 00 00 00 00    	call   \*0x0	24: R_386_GOT32	foo
be6651
+[ 	]*[a-f0-9]+:	ff 90 00 00 00 00    	call   \*0x0\(%eax\)	2a: R_386_GOT32	foo
be6651
+[ 	]*[a-f0-9]+:	ff 25 00 00 00 00    	jmp    \*0x0	30: R_386_GOT32	foo
be6651
+[ 	]*[a-f0-9]+:	ff a0 00 00 00 00    	jmp    \*0x0\(%eax\)	36: R_386_GOT32	foo
be6651
 [ 	]*[a-f0-9]+:	b8 00 00 00 00       	mov    \$0x0,%eax	3b: R_386_GOT32	foo
be6651
-[ 	]*[a-f0-9]+:	8b 05 00 00 00 00    	mov    0x0,%eax	41: R_386_GOT32X	foo
be6651
-[ 	]*[a-f0-9]+:	8b 80 00 00 00 00    	mov    0x0\(%eax\),%eax	47: R_386_GOT32X	foo
be6651
+[ 	]*[a-f0-9]+:	8b 05 00 00 00 00    	mov    0x0,%eax	41: R_386_GOT32	foo
be6651
+[ 	]*[a-f0-9]+:	8b 80 00 00 00 00    	mov    0x0\(%eax\),%eax	47: R_386_GOT32	foo
be6651
 [ 	]*[a-f0-9]+:	05 00 00 00 00       	add    \$0x0,%eax	4c: R_386_GOT32	foo
be6651
-[ 	]*[a-f0-9]+:	03 05 00 00 00 00    	add    0x0,%eax	52: R_386_GOT32X	foo
be6651
-[ 	]*[a-f0-9]+:	03 80 00 00 00 00    	add    0x0\(%eax\),%eax	58: R_386_GOT32X	foo
be6651
-[ 	]*[a-f0-9]+:	ff 90 00 00 00 00    	call   \*0x0\(%eax\)	5e: R_386_GOT32X	foo
be6651
-[ 	]*[a-f0-9]+:	ff 15 00 00 00 00    	call   \*0x0	64: R_386_GOT32X	foo
be6651
-[ 	]*[a-f0-9]+:	ff a0 00 00 00 00    	jmp    \*0x0\(%eax\)	6a: R_386_GOT32X	foo
be6651
-[ 	]*[a-f0-9]+:	ff 25 00 00 00 00    	jmp    \*0x0	70: R_386_GOT32X	foo
be6651
+[ 	]*[a-f0-9]+:	03 05 00 00 00 00    	add    0x0,%eax	52: R_386_GOT32	foo
be6651
+[ 	]*[a-f0-9]+:	03 80 00 00 00 00    	add    0x0\(%eax\),%eax	58: R_386_GOT32	foo
be6651
+[ 	]*[a-f0-9]+:	ff 90 00 00 00 00    	call   \*0x0\(%eax\)	5e: R_386_GOT32	foo
be6651
+[ 	]*[a-f0-9]+:	ff 15 00 00 00 00    	call   \*0x0	64: R_386_GOT32	foo
be6651
+[ 	]*[a-f0-9]+:	ff a0 00 00 00 00    	jmp    \*0x0\(%eax\)	6a: R_386_GOT32	foo
be6651
+[ 	]*[a-f0-9]+:	ff 25 00 00 00 00    	jmp    \*0x0	70: R_386_GOT32	foo
be6651
 #pass
be6651
diff -rup binutils.orig/gas/testsuite/gas/i386/got-no-relax.d binutils-2.27/gas/testsuite/gas/i386/got-no-relax.d
be6651
--- binutils.orig/gas/testsuite/gas/i386/got-no-relax.d	2017-10-25 12:52:20.045289685 +0100
be6651
+++ binutils-2.27/gas/testsuite/gas/i386/got-no-relax.d	2017-10-25 15:18:30.398991961 +0100
be6651
@@ -9,23 +9,23 @@ Disassembly of section .text:
be6651
 
be6651
 0+ <_start>:
be6651
 [ 	]*[a-f0-9]+:	b8 00 00 00 00       	mov    \$0x0,%eax	1: R_386_GOT32	foo
be6651
-[ 	]*[a-f0-9]+:	8b 05 00 00 00 00    	mov    0x0,%eax	7: R_386_GOT32X	foo
be6651
+[ 	]*[a-f0-9]+:	8b 05 00 00 00 00    	mov    0x0,%eax	7: R_386_GOT32	foo
be6651
 [ 	]*[a-f0-9]+:	8b 80 00 00 00 00    	mov    0x0\(%eax\),%eax	d: R_386_GOT32	foo
be6651
 [ 	]*[a-f0-9]+:	05 00 00 00 00       	add    \$0x0,%eax	12: R_386_GOT32	foo
be6651
-[ 	]*[a-f0-9]+:	03 05 00 00 00 00    	add    0x0,%eax	18: R_386_GOT32X	foo
be6651
+[ 	]*[a-f0-9]+:	03 05 00 00 00 00    	add    0x0,%eax	18: R_386_GOT32	foo
be6651
 [ 	]*[a-f0-9]+:	03 80 00 00 00 00    	add    0x0\(%eax\),%eax	1e: R_386_GOT32	foo
be6651
-[ 	]*[a-f0-9]+:	ff 15 00 00 00 00    	call   \*0x0	24: R_386_GOT32X	foo
be6651
+[ 	]*[a-f0-9]+:	ff 15 00 00 00 00    	call   \*0x0	24: R_386_GOT32	foo
be6651
 [ 	]*[a-f0-9]+:	ff 90 00 00 00 00    	call   \*0x0\(%eax\)	2a: R_386_GOT32	foo
be6651
-[ 	]*[a-f0-9]+:	ff 25 00 00 00 00    	jmp    \*0x0	30: R_386_GOT32X	foo
be6651
+[ 	]*[a-f0-9]+:	ff 25 00 00 00 00    	jmp    \*0x0	30: R_386_GOT32	foo
be6651
 [ 	]*[a-f0-9]+:	ff a0 00 00 00 00    	jmp    \*0x0\(%eax\)	36: R_386_GOT32	foo
be6651
 [ 	]*[a-f0-9]+:	b8 00 00 00 00       	mov    \$0x0,%eax	3b: R_386_GOT32	foo
be6651
-[ 	]*[a-f0-9]+:	8b 05 00 00 00 00    	mov    0x0,%eax	41: R_386_GOT32X	foo
be6651
+[ 	]*[a-f0-9]+:	8b 05 00 00 00 00    	mov    0x0,%eax	41: R_386_GOT32	foo
be6651
 [ 	]*[a-f0-9]+:	8b 80 00 00 00 00    	mov    0x0\(%eax\),%eax	47: R_386_GOT32	foo
be6651
 [ 	]*[a-f0-9]+:	05 00 00 00 00       	add    \$0x0,%eax	4c: R_386_GOT32	foo
be6651
-[ 	]*[a-f0-9]+:	03 05 00 00 00 00    	add    0x0,%eax	52: R_386_GOT32X	foo
be6651
+[ 	]*[a-f0-9]+:	03 05 00 00 00 00    	add    0x0,%eax	52: R_386_GOT32	foo
be6651
 [ 	]*[a-f0-9]+:	03 80 00 00 00 00    	add    0x0\(%eax\),%eax	58: R_386_GOT32	foo
be6651
 [ 	]*[a-f0-9]+:	ff 90 00 00 00 00    	call   \*0x0\(%eax\)	5e: R_386_GOT32	foo
be6651
-[ 	]*[a-f0-9]+:	ff 15 00 00 00 00    	call   \*0x0	64: R_386_GOT32X	foo
be6651
+[ 	]*[a-f0-9]+:	ff 15 00 00 00 00    	call   \*0x0	64: R_386_GOT32	foo
be6651
 [ 	]*[a-f0-9]+:	ff a0 00 00 00 00    	jmp    \*0x0\(%eax\)	6a: R_386_GOT32	foo
be6651
-[ 	]*[a-f0-9]+:	ff 25 00 00 00 00    	jmp    \*0x0	70: R_386_GOT32X	foo
be6651
+[ 	]*[a-f0-9]+:	ff 25 00 00 00 00    	jmp    \*0x0	70: R_386_GOT32	foo
be6651
 #pass
be6651
diff -rup binutils.orig/gas/testsuite/gas/i386/ilp32/x86-64-gotpcrel.d binutils-2.27/gas/testsuite/gas/i386/ilp32/x86-64-gotpcrel.d
be6651
--- binutils.orig/gas/testsuite/gas/i386/ilp32/x86-64-gotpcrel.d	2017-10-25 12:52:20.047289662 +0100
be6651
+++ binutils-2.27/gas/testsuite/gas/i386/ilp32/x86-64-gotpcrel.d	2017-10-25 15:12:35.549099037 +0100
be6651
@@ -2,6 +2,8 @@
be6651
 #as: --x32 -mrelax-relocations=yes
be6651
 #objdump: -dwr
be6651
 #name: x86-64 (ILP32) gotpcrel
be6651
+#skip: *-*-*
be6651
+# SKIPed because generation of the R_X86_64_REX_GOTPCRELX and R_X86_64_GOTPCRELX relocs is currently suppressed.
be6651
 
be6651
 .*: +file format .*
be6651
 
be6651
diff -rup binutils.orig/gas/testsuite/gas/i386/ilp32/x86-64-localpic.d binutils-2.27/gas/testsuite/gas/i386/ilp32/x86-64-localpic.d
be6651
--- binutils.orig/gas/testsuite/gas/i386/ilp32/x86-64-localpic.d	2017-10-25 12:52:20.047289662 +0100
be6651
+++ binutils-2.27/gas/testsuite/gas/i386/ilp32/x86-64-localpic.d	2017-10-25 15:12:35.549099037 +0100
be6651
@@ -2,6 +2,8 @@
be6651
 #as: --x32 -mrelax-relocations=yes
be6651
 #readelf: -rsW
be6651
 #name: x86-64 (ILP32) local PIC
be6651
+#skip: *-*-*
be6651
+# SKIPed because generation of the R_X86_64_REX_GOTPCRELX reloc is currently suppressed.
be6651
 
be6651
 Relocation section '.rela.text' at offset 0x[0-9a-f]+ contains 1 entries:
be6651
  +Offset +Info +Type +Sym. Value +Symbol's Name \+ Addend
be6651
diff -rup binutils.orig/gas/testsuite/gas/i386/localpic.d binutils-2.27/gas/testsuite/gas/i386/localpic.d
be6651
--- binutils.orig/gas/testsuite/gas/i386/localpic.d	2017-10-25 12:52:20.049289639 +0100
be6651
+++ binutils-2.27/gas/testsuite/gas/i386/localpic.d	2017-10-25 15:18:13.799183724 +0100
be6651
@@ -4,7 +4,7 @@
be6651
 
be6651
 Relocation section '.rel.text' at offset 0x[0-9a-f]+ contains 1 entries:
be6651
  Offset     Info    Type            Sym.Value  Sym. Name
be6651
-[0-9a-f]+ +[0-9a-f]+ R_386_GOT32X +[0-9a-f]+ +foo
be6651
+[0-9a-f]+ +[0-9a-f]+ R_386_GOT32 +[0-9a-f]+ +foo
be6651
 #...
be6651
  +[0-9]+: +[0-9a-f]+ +[0-9a-f]+ +NOTYPE +LOCAL +DEFAULT +[0-9]+ +foo
be6651
 #pass
be6651
diff -rup binutils.orig/gas/testsuite/gas/i386/mixed-mode-reloc32.d binutils-2.27/gas/testsuite/gas/i386/mixed-mode-reloc32.d
be6651
--- binutils.orig/gas/testsuite/gas/i386/mixed-mode-reloc32.d	2017-10-25 12:52:20.050289627 +0100
be6651
+++ binutils-2.27/gas/testsuite/gas/i386/mixed-mode-reloc32.d	2017-10-25 15:18:02.186317878 +0100
be6651
@@ -7,9 +7,9 @@
be6651
 
be6651
 RELOCATION RECORDS FOR \[.text\]:
be6651
 OFFSET[ 	]+TYPE[ 	]+VALUE[ 	]*
be6651
-[0-9a-f]+[ 	]+R_386_GOT32X[ 	]+xtrn[ 	]*
be6651
+[0-9a-f]+[ 	]+R_386_GOT32[ 	]+xtrn[ 	]*
be6651
 [0-9a-f]+[ 	]+R_386_PLT32[ 	]+xtrn[ 	]*
be6651
-[0-9a-f]+[ 	]+R_386_GOT32X[ 	]+xtrn[ 	]*
be6651
+[0-9a-f]+[ 	]+R_386_GOT32[ 	]+xtrn[ 	]*
be6651
 [0-9a-f]+[ 	]+R_386_PLT32[ 	]+xtrn[ 	]*
be6651
-[0-9a-f]+[ 	]+R_386_GOT32X[ 	]+xtrn[ 	]*
be6651
+[0-9a-f]+[ 	]+R_386_GOT32[ 	]+xtrn[ 	]*
be6651
 [0-9a-f]+[ 	]+R_386_PLT32[ 	]+xtrn[ 	]*
be6651
diff -rup binutils.orig/gas/testsuite/gas/i386/reloc32.d binutils-2.27/gas/testsuite/gas/i386/reloc32.d
be6651
--- binutils.orig/gas/testsuite/gas/i386/reloc32.d	2017-10-25 12:52:20.052289604 +0100
be6651
+++ binutils-2.27/gas/testsuite/gas/i386/reloc32.d	2017-10-25 15:16:06.161659763 +0100
be6651
@@ -19,7 +19,7 @@ Disassembly of section \.text:
be6651
 .*[ 	]+R_386_PC32[ 	]+xtrn
be6651
 .*[ 	]+R_386_PC8[ 	]+xtrn
be6651
 .*[ 	]+R_386_GOT32[ 	]+xtrn
be6651
-.*[ 	]+R_386_GOT32X[ 	]+xtrn
be6651
+.*[ 	]+R_386_GOT32[ 	]+xtrn
be6651
 .*[ 	]+R_386_GOTOFF[ 	]+xtrn
be6651
 .*[ 	]+R_386_GOTOFF[ 	]+xtrn
be6651
 .*[ 	]+R_386_GOTPC[ 	]+_GLOBAL_OFFSET_TABLE_
be6651
diff -rup binutils.orig/gas/testsuite/gas/i386/x86-64-gotpcrel.d binutils-2.27/gas/testsuite/gas/i386/x86-64-gotpcrel.d
be6651
--- binutils.orig/gas/testsuite/gas/i386/x86-64-gotpcrel.d	2017-10-25 12:52:20.063289476 +0100
be6651
+++ binutils-2.27/gas/testsuite/gas/i386/x86-64-gotpcrel.d	2017-10-25 15:12:35.549099037 +0100
be6651
@@ -1,5 +1,7 @@
be6651
 #as: -mrelax-relocations=yes
be6651
 #objdump: -dwr
be6651
+#skip: *-*-*
be6651
+# SKIPed because generation of the R_X86_64_REX_GOTPCRELX and R_X86_64_GOTPCRELX relocs is currently suppressed.
be6651
 
be6651
 .*: +file format .*
be6651
 
be6651
diff -rup binutils.orig/gas/testsuite/gas/i386/x86-64-localpic.d binutils-2.27/gas/testsuite/gas/i386/x86-64-localpic.d
be6651
--- binutils.orig/gas/testsuite/gas/i386/x86-64-localpic.d	2017-10-25 12:52:20.064289465 +0100
be6651
+++ binutils-2.27/gas/testsuite/gas/i386/x86-64-localpic.d	2017-10-25 15:12:35.549099037 +0100
be6651
@@ -1,6 +1,8 @@
be6651
 #as: -mrelax-relocations=yes
be6651
 #readelf: -rsW
be6651
 #name: x86-64 local PIC
be6651
+#skip: *-*-*
be6651
+# SKIPed because generation of the R_X86_64_REX_GOTPCRELX reloc is currently suppressed.
be6651
 
be6651
 Relocation section '.rela.text' at offset 0x[0-9a-f]+ contains 1 entries:
be6651
  +Offset +Info +Type +Symbol's Value +Symbol's Name \+ Addend
be6651
diff -rup binutils.orig/ld/testsuite/ld-cdtest/cdtest-foo.cc binutils-2.27/ld/testsuite/ld-cdtest/cdtest-foo.cc
be6651
--- binutils.orig/ld/testsuite/ld-cdtest/cdtest-foo.cc	2017-10-25 12:52:20.549283841 +0100
be6651
+++ binutils-2.27/ld/testsuite/ld-cdtest/cdtest-foo.cc	2017-10-25 15:12:35.549099037 +0100
be6651
@@ -8,7 +8,7 @@
be6651
 #if (__GNUG__ == 2)
be6651
 typedef __SIZE_TYPE__ size_t;
be6651
 #else
be6651
-typedef unsigned int size_t;
be6651
+typedef unsigned long size_t;
be6651
 #endif
be6651
 
be6651
 extern "C" {
be6651
diff -rup binutils.orig/ld/testsuite/ld-elf/shared.exp binutils-2.27/ld/testsuite/ld-elf/shared.exp
be6651
--- binutils.orig/ld/testsuite/ld-elf/shared.exp	2017-10-25 12:52:20.578283504 +0100
be6651
+++ binutils-2.27/ld/testsuite/ld-elf/shared.exp	2017-10-25 15:45:58.374968233 +0100
be6651
@@ -483,10 +483,10 @@ set build_cxx_tests {
be6651
    "-shared -Wl,--dynamic-list-cpp-typeinfo" "-fPIC"
be6651
    {dl3.cc} {} "libdl3c.so" "c++"}
be6651
   {"Build libdnew1a.so with --Bsymbolic-functions --dynamic-list-cpp-new"
be6651
-   "-shared -Wl,-Bsymbolic-functions,--dynamic-list-cpp-new" "-fPIC"
be6651
+   "-shared -Wl,-Bsymbolic-functions,--dynamic-list-cpp-new" "-fPIC -ansi"
be6651
    {del.cc new.cc} {} "libnew1a.so" "c++"}
be6651
   {"Build libdnew1b.so with --dynamic-list-data --dynamic-list-cpp-new"
be6651
-   "-shared -Wl,--dynamic-list-data,--dynamic-list-cpp-new" "-fPIC"
be6651
+   "-shared -Wl,--dynamic-list-data,--dynamic-list-cpp-new" "-fPIC -ansi"
be6651
    {del.cc new.cc} {} "libnew1b.so" "c++"}
be6651
 }
be6651
 
be6651
@@ -503,10 +503,10 @@ set run_cxx_tests {
be6651
      {dl3main.cc} "dl3c" "dl3a.out" "" "c++"}
be6651
     {"Run with libnew1a.so"
be6651
      "tmpdir/libnew1a.so" ""
be6651
-     {dl5.cc} "dl5a" "dl5.out" "" "c++"}
be6651
+     {dl5.cc} "dl5a" "dl5.out" "-ansi" "c++"}
be6651
     {"Run with libnew1b.so"
be6651
      "tmpdir/libnew1b.so" ""
be6651
-     {dl5.cc} "dl5b" "dl5.out" "" "c++"}
be6651
+     {dl5.cc} "dl5b" "dl5.out" "-ansi" "c++"}
be6651
 }
be6651
 
be6651
 run_cc_link_tests $build_cxx_tests
be6651
diff -rup binutils.orig/ld/testsuite/ld-i386/branch1.d binutils-2.27/ld/testsuite/ld-i386/branch1.d
be6651
--- binutils.orig/ld/testsuite/ld-i386/branch1.d	2017-10-25 12:52:20.657282588 +0100
be6651
+++ binutils-2.27/ld/testsuite/ld-i386/branch1.d	2017-10-25 15:26:26.015497567 +0100
be6651
@@ -1,6 +1,8 @@
be6651
 #as: --32 -mrelax-relocations=yes
be6651
 #ld: -melf_i386
be6651
 #objdump: -dw
be6651
+#xfail: *-*-*
be6651
+# XFAILed because generation of the R_386_GOT32X relocs is currently suppressed.
be6651
 
be6651
 .*: +file format .*
be6651
 
be6651
diff -rup binutils.orig/ld/testsuite/ld-i386/call1.d binutils-2.27/ld/testsuite/ld-i386/call1.d
be6651
--- binutils.orig/ld/testsuite/ld-i386/call1.d	2017-10-25 12:52:20.658282576 +0100
be6651
+++ binutils-2.27/ld/testsuite/ld-i386/call1.d	2017-10-25 15:26:33.407412174 +0100
be6651
@@ -1,3 +1,5 @@
be6651
 #as: --32 -mrelax-relocations=yes
be6651
 #ld: -shared -melf_i386
be6651
 #error: direct GOT relocation R_386_GOT32X against `foo' without base register can not be used when making a shared object
be6651
+#xfail: *-*-*
be6651
+# XFAILed because generation of the R_386_GOT32X relocs is currently suppressed.
be6651
diff -rup binutils.orig/ld/testsuite/ld-i386/call2.d binutils-2.27/ld/testsuite/ld-i386/call2.d
be6651
--- binutils.orig/ld/testsuite/ld-i386/call2.d	2017-10-25 12:52:20.658282576 +0100
be6651
+++ binutils-2.27/ld/testsuite/ld-i386/call2.d	2017-10-25 15:26:43.024301080 +0100
be6651
@@ -1,3 +1,5 @@
be6651
 #as: --32 -mrelax-relocations=yes
be6651
 #ld: -shared -melf_i386
be6651
 #error: direct GOT relocation R_386_GOT32X against `foo' without base register can not be used when making a shared object
be6651
+#xfail: *-*-*
be6651
+# XFAILed because generation of the R_386_GOT32X relocs is currently suppressed.
be6651
diff -rup binutils.orig/ld/testsuite/ld-i386/call3a.d binutils-2.27/ld/testsuite/ld-i386/call3a.d
be6651
--- binutils.orig/ld/testsuite/ld-i386/call3a.d	2017-10-25 12:52:20.658282576 +0100
be6651
+++ binutils-2.27/ld/testsuite/ld-i386/call3a.d	2017-10-25 15:29:17.042521838 +0100
be6651
@@ -2,6 +2,8 @@
be6651
 #as: --32 -mrelax-relocations=yes
be6651
 #ld: -melf_i386
be6651
 #objdump: -dw
be6651
+#xfail: *-*-*
be6651
+# XFAILed because generation of the R_386_GOT32X relocs is currently suppressed.
be6651
 
be6651
 .*: +file format .*
be6651
 
be6651
diff -rup binutils.orig/ld/testsuite/ld-i386/call3b.d binutils-2.27/ld/testsuite/ld-i386/call3b.d
be6651
--- binutils.orig/ld/testsuite/ld-i386/call3b.d	2017-10-25 12:52:20.658282576 +0100
be6651
+++ binutils-2.27/ld/testsuite/ld-i386/call3b.d	2017-10-25 15:29:21.756467382 +0100
be6651
@@ -2,6 +2,8 @@
be6651
 #as: --32 -mrelax-relocations=yes
be6651
 #ld: -melf_i386 -z call-nop=prefix-addr
be6651
 #objdump: -dw
be6651
+#xfail: *-*-*
be6651
+# XFAILed because generation of the R_386_GOT32X relocs is currently suppressed.
be6651
 
be6651
 .*: +file format .*
be6651
 
be6651
diff -rup binutils.orig/ld/testsuite/ld-i386/call3c.d binutils-2.27/ld/testsuite/ld-i386/call3c.d
be6651
--- binutils.orig/ld/testsuite/ld-i386/call3c.d	2017-10-25 12:52:20.658282576 +0100
be6651
+++ binutils-2.27/ld/testsuite/ld-i386/call3c.d	2017-10-25 15:29:26.457413076 +0100
be6651
@@ -2,6 +2,8 @@
be6651
 #as: --32 -mrelax-relocations=yes
be6651
 #ld: -melf_i386 -z call-nop=prefix-nop
be6651
 #objdump: -dw
be6651
+#xfail: *-*-*
be6651
+# XFAILed because generation of the R_386_GOT32X relocs is currently suppressed.
be6651
 
be6651
 .*: +file format .*
be6651
 
be6651
diff -rup binutils.orig/ld/testsuite/ld-i386/call3d.d binutils-2.27/ld/testsuite/ld-i386/call3d.d
be6651
--- binutils.orig/ld/testsuite/ld-i386/call3d.d	2017-10-25 12:52:20.658282576 +0100
be6651
+++ binutils-2.27/ld/testsuite/ld-i386/call3d.d	2017-10-25 15:29:30.925361461 +0100
be6651
@@ -2,6 +2,8 @@
be6651
 #as: --32 -mrelax-relocations=yes
be6651
 #ld: -melf_i386 -z call-nop=suffix-nop
be6651
 #objdump: -dw
be6651
+#xfail: *-*-*
be6651
+# XFAILed because generation of the R_386_GOT32X relocs is currently suppressed.
be6651
 
be6651
 .*: +file format .*
be6651
 
be6651
diff -rup binutils.orig/ld/testsuite/ld-i386/call3e.d binutils-2.27/ld/testsuite/ld-i386/call3e.d
be6651
--- binutils.orig/ld/testsuite/ld-i386/call3e.d	2017-10-25 12:52:20.658282576 +0100
be6651
+++ binutils-2.27/ld/testsuite/ld-i386/call3e.d	2017-10-25 15:29:38.894269403 +0100
be6651
@@ -2,6 +2,8 @@
be6651
 #as: --32 -mrelax-relocations=yes
be6651
 #ld: -melf_i386 -z call-nop=prefix-0x67
be6651
 #objdump: -dw
be6651
+#xfail: *-*-*
be6651
+# XFAILed because generation of the R_386_GOT32X relocs is currently suppressed.
be6651
 
be6651
 .*: +file format .*
be6651
 
be6651
diff -rup binutils.orig/ld/testsuite/ld-i386/call3f.d binutils-2.27/ld/testsuite/ld-i386/call3f.d
be6651
--- binutils.orig/ld/testsuite/ld-i386/call3f.d	2017-10-25 12:52:20.658282576 +0100
be6651
+++ binutils-2.27/ld/testsuite/ld-i386/call3f.d	2017-10-25 15:29:47.134174215 +0100
be6651
@@ -2,6 +2,8 @@
be6651
 #as: --32 -mrelax-relocations=yes
be6651
 #ld: -melf_i386 -z call-nop=prefix-0x90
be6651
 #objdump: -dw
be6651
+#xfail: *-*-*
be6651
+# XFAILed because generation of the R_386_GOT32X relocs is currently suppressed.
be6651
 
be6651
 .*: +file format .*
be6651
 
be6651
diff -rup binutils.orig/ld/testsuite/ld-i386/call3g.d binutils-2.27/ld/testsuite/ld-i386/call3g.d
be6651
--- binutils.orig/ld/testsuite/ld-i386/call3g.d	2017-10-25 12:52:20.658282576 +0100
be6651
+++ binutils-2.27/ld/testsuite/ld-i386/call3g.d	2017-10-25 15:29:52.341114063 +0100
be6651
@@ -2,6 +2,8 @@
be6651
 #as: --32 -mrelax-relocations=yes
be6651
 #ld: -melf_i386 -z call-nop=suffix-0x90
be6651
 #objdump: -dw
be6651
+#xfail: *-*-*
be6651
+# XFAILed because generation of the R_386_GOT32X relocs is currently suppressed.
be6651
 
be6651
 .*: +file format .*
be6651
 
be6651
diff -rup binutils.orig/ld/testsuite/ld-i386/call3h.d binutils-2.27/ld/testsuite/ld-i386/call3h.d
be6651
--- binutils.orig/ld/testsuite/ld-i386/call3h.d	2017-10-25 12:52:20.658282576 +0100
be6651
+++ binutils-2.27/ld/testsuite/ld-i386/call3h.d	2017-10-25 15:29:57.237057504 +0100
be6651
@@ -2,6 +2,8 @@
be6651
 #as: --32 -mrelax-relocations=yes
be6651
 #ld: -melf_i386 -z call-nop=suffix-144
be6651
 #objdump: -dw
be6651
+#xfail: *-*-*
be6651
+# XFAILed because generation of the R_386_GOT32X relocs is currently suppressed.
be6651
 
be6651
 .*: +file format .*
be6651
 
be6651
diff -rup binutils.orig/ld/testsuite/ld-i386/i386.exp binutils-2.27/ld/testsuite/ld-i386/i386.exp
be6651
--- binutils.orig/ld/testsuite/ld-i386/i386.exp	2017-10-25 12:52:20.661282542 +0100
be6651
+++ binutils-2.27/ld/testsuite/ld-i386/i386.exp	2017-10-25 15:42:06.083647050 +0100
be6651
@@ -133,13 +133,6 @@ set i386tests {
be6651
      {{readelf -Ssrl tlspic.rd} {objdump -drj.text tlspic.dd}
be6651
       {objdump -sj.got tlspic.sd} {objdump -sj.tdata tlspic.td}}
be6651
       "libtlspic.so"}
be6651
-    {"TLS -fpic -shared transitions without PLT"
be6651
-     "-shared -melf_i386 --no-ld-generated-unwind-info" ""
be6651
-     "-mrelax-relocations=yes --32"
be6651
-     {tlspic3.s tlspic2.s}
be6651
-     {{readelf -Ssrl tlspic2.rd} {objdump -drj.text tlspic2.dd}
be6651
-      {objdump -sj.got tlspic2.sd} {objdump -sj.tdata tlspic2.td}}
be6651
-      "libtlspic2.so"}
be6651
     {"TLS descriptor -fpic -shared transitions"
be6651
      "-shared -melf_i386 --no-ld-generated-unwind-info" ""
be6651
      "--32" {tlsdesc.s tlspic2.s}
be6651
@@ -154,13 +147,6 @@ set i386tests {
be6651
      {{readelf -Ssrl tlsbin.rd} {objdump -drj.text tlsbin.dd}
be6651
       {objdump -sj.got tlsbin.sd} {objdump -sj.tdata tlsbin.td}}
be6651
       "tlsbin"}
be6651
-    {"TLS -fpic and -fno-pic exec transitions without PLT"
be6651
-     "-melf_i386 tmpdir/libtlslib.so --no-ld-generated-unwind-info" ""
be6651
-     "-mrelax-relocations=yes --32"
be6651
-     {tlsbinpic2.s tlsbin.s}
be6651
-     {{readelf -Ssrl tlsbin2.rd} {objdump -drj.text tlsbin2.dd}
be6651
-      {objdump -sj.got tlsbin2.sd} {objdump -sj.tdata tlsbin2.td}}
be6651
-      "tlsbin2"}
be6651
     {"TLS descriptor -fpic and -fno-pic exec transitions"
be6651
      "-melf_i386 tmpdir/libtlslib.so --no-ld-generated-unwind-info" ""
be6651
      "--32" {tlsbindesc.s tlsbin.s}
be6651
@@ -191,17 +177,9 @@ set i386tests {
be6651
     {"TLS GD->LE transition" "-melf_i386" ""
be6651
      "--32" {tlsgd1.s}
be6651
      {{objdump -dwr tlsgd1.dd}} "tlsgd1"}
be6651
-    {"TLS GD->LE transition without PLT" "-melf_i386" ""
be6651
-     "-mrelax-relocations=yes --32"
be6651
-     {tlsgd3.s}
be6651
-     {{objdump -dwr tlsgd3.dd}} "tlsgd3"}
be6651
     {"TLS LD->LE transition" "-melf_i386" ""
be6651
      "--32" {tlsld1.s}
be6651
      {{objdump -dwr tlsld1.dd}} "tlsld1"}
be6651
-    {"TLS LD->LE transition without PLT" "-melf_i386" ""
be6651
-     "-mrelax-relocations=yes --32"
be6651
-     {tlsld2.s}
be6651
-     {{objdump -dwr tlsld2.dd}} "tlsld2"}
be6651
     {"TLS IE->LE transition" "-melf_i386" ""
be6651
      "--32" {tlsie1.s}
be6651
      {{objdump -dwr tlsie1.dd}} "tlsie1"}
be6651
diff -rup binutils.orig/ld/testsuite/ld-i386/jmp1.d binutils-2.27/ld/testsuite/ld-i386/jmp1.d
be6651
--- binutils.orig/ld/testsuite/ld-i386/jmp1.d	2017-10-25 12:52:20.661282542 +0100
be6651
+++ binutils-2.27/ld/testsuite/ld-i386/jmp1.d	2017-10-25 15:30:06.805946963 +0100
be6651
@@ -1,3 +1,5 @@
be6651
 #as: --32 -mrelax-relocations=yes
be6651
 #ld: -shared -melf_i386
be6651
 #error: direct GOT relocation R_386_GOT32X against `foo' without base register can not be used when making a shared object
be6651
+#xfail: *-*-*
be6651
+# XFAILed because generation of the R_386_GOT32X relocs is currently suppressed.
be6651
diff -rup binutils.orig/ld/testsuite/ld-i386/jmp2.d binutils-2.27/ld/testsuite/ld-i386/jmp2.d
be6651
--- binutils.orig/ld/testsuite/ld-i386/jmp2.d	2017-10-25 12:52:20.662282530 +0100
be6651
+++ binutils-2.27/ld/testsuite/ld-i386/jmp2.d	2017-10-25 15:30:14.181861755 +0100
be6651
@@ -1,3 +1,5 @@
be6651
 #as: --32 -mrelax-relocations=yes
be6651
 #ld: -shared -melf_i386
be6651
 #error: direct GOT relocation R_386_GOT32X against `foo' without base register can not be used when making a shared object
be6651
+#xfail: *-*-*
be6651
+# XFAILed because generation of the R_386_GOT32X relocs is currently suppressed.
be6651
diff -rup binutils.orig/ld/testsuite/ld-i386/lea1a.d binutils-2.27/ld/testsuite/ld-i386/lea1a.d
be6651
--- binutils.orig/ld/testsuite/ld-i386/lea1a.d	2017-10-25 12:52:20.662282530 +0100
be6651
+++ binutils-2.27/ld/testsuite/ld-i386/lea1a.d	2017-10-25 15:25:33.592103171 +0100
be6651
@@ -2,6 +2,8 @@
be6651
 #as: --32 -mrelax-relocations=yes
be6651
 #ld: -Bsymbolic -shared -melf_i386
be6651
 #objdump: -dw
be6651
+#xfail: *-*-*
be6651
+# XFAILed because generation of the R_386_GOT32X relocs is currently suppressed.
be6651
 
be6651
 .*: +file format .*
be6651
 
be6651
diff -rup binutils.orig/ld/testsuite/ld-i386/lea1b.d binutils-2.27/ld/testsuite/ld-i386/lea1b.d
be6651
--- binutils.orig/ld/testsuite/ld-i386/lea1b.d	2017-10-25 12:52:20.662282530 +0100
be6651
+++ binutils-2.27/ld/testsuite/ld-i386/lea1b.d	2017-10-25 15:25:39.289037359 +0100
be6651
@@ -2,6 +2,8 @@
be6651
 #as: --32 -mrelax-relocations=yes
be6651
 #ld: -pie -melf_i386
be6651
 #objdump: -dw
be6651
+#xfail: *-*-*
be6651
+# XFAILed because generation of the R_386_GOT32X relocs is currently suppressed.
be6651
 
be6651
 .*: +file format .*
be6651
 
be6651
diff -rup binutils.orig/ld/testsuite/ld-i386/lea1c.d binutils-2.27/ld/testsuite/ld-i386/lea1c.d
be6651
--- binutils.orig/ld/testsuite/ld-i386/lea1c.d	2017-10-25 12:52:20.662282530 +0100
be6651
+++ binutils-2.27/ld/testsuite/ld-i386/lea1c.d	2017-10-25 15:25:46.777950846 +0100
be6651
@@ -2,6 +2,8 @@
be6651
 #as: --32 -mrelax-relocations=yes
be6651
 #ld: -melf_i386
be6651
 #objdump: -dw
be6651
+#xfail: *-*-*
be6651
+# XFAILed because generation of the R_386_GOT32X relocs is currently suppressed.
be6651
 
be6651
 .*: +file format .*
be6651
 
be6651
diff -rup binutils.orig/ld/testsuite/ld-i386/lea1d.d binutils-2.27/ld/testsuite/ld-i386/lea1d.d
be6651
--- binutils.orig/ld/testsuite/ld-i386/lea1d.d	2017-10-25 12:52:20.662282530 +0100
be6651
+++ binutils-2.27/ld/testsuite/ld-i386/lea1d.d	2017-10-25 15:25:55.802846589 +0100
be6651
@@ -2,6 +2,8 @@
be6651
 #as: --32 -mrelax-relocations=yes
be6651
 #ld: -Bsymbolic -shared -melf_i386
be6651
 #readelf: -Sw
be6651
+#xfail: *-*-*
be6651
+# XFAILed because generation of the R_386_GOT32X relocs is currently suppressed.
be6651
 
be6651
 #failif
be6651
 #...
be6651
diff -rup binutils.orig/ld/testsuite/ld-i386/lea1e.d binutils-2.27/ld/testsuite/ld-i386/lea1e.d
be6651
--- binutils.orig/ld/testsuite/ld-i386/lea1e.d	2017-10-25 12:52:20.662282530 +0100
be6651
+++ binutils-2.27/ld/testsuite/ld-i386/lea1e.d	2017-10-25 15:26:03.115762109 +0100
be6651
@@ -2,6 +2,8 @@
be6651
 #as: --32 -mrelax-relocations=yes
be6651
 #ld: -pie -melf_i386
be6651
 #readelf: -Sw
be6651
+#xfail: *-*-*
be6651
+# XFAILed because generation of the R_386_GOT32X relocs is currently suppressed.
be6651
 
be6651
 #failif
be6651
 #...
be6651
diff -rup binutils.orig/ld/testsuite/ld-i386/lea1f.d binutils-2.27/ld/testsuite/ld-i386/lea1f.d
be6651
--- binutils.orig/ld/testsuite/ld-i386/lea1f.d	2017-10-25 12:52:20.662282530 +0100
be6651
+++ binutils-2.27/ld/testsuite/ld-i386/lea1f.d	2017-10-25 15:26:09.485688523 +0100
be6651
@@ -2,6 +2,8 @@
be6651
 #as: --32 -mrelax-relocations=yes
be6651
 #ld: -melf_i386
be6651
 #readelf: -Sw
be6651
+#xfail: *-*-*
be6651
+# XFAILed because generation of the R_386_GOT32X relocs is currently suppressed.
be6651
 
be6651
 #failif
be6651
 #...
be6651
diff -rup binutils.orig/ld/testsuite/ld-i386/load1.d binutils-2.27/ld/testsuite/ld-i386/load1.d
be6651
--- binutils.orig/ld/testsuite/ld-i386/load1.d	2017-10-25 12:52:20.662282530 +0100
be6651
+++ binutils-2.27/ld/testsuite/ld-i386/load1.d	2017-10-25 15:30:23.543753605 +0100
be6651
@@ -2,6 +2,8 @@
be6651
 #ld: -melf_i386
be6651
 #objdump: -dw --sym
be6651
 #notarget: i?86-*-nacl* x86_64-*-nacl*
be6651
+#xfail: *-*-*
be6651
+# XFAILed because generation of the R_386_GOT32X relocs is currently suppressed.
be6651
 
be6651
 .*: +file format .*
be6651
 
be6651
diff -rup binutils.orig/ld/testsuite/ld-i386/load2.d binutils-2.27/ld/testsuite/ld-i386/load2.d
be6651
--- binutils.orig/ld/testsuite/ld-i386/load2.d	2017-10-25 12:52:20.662282530 +0100
be6651
+++ binutils-2.27/ld/testsuite/ld-i386/load2.d	2017-10-25 15:31:10.090215894 +0100
be6651
@@ -1,3 +1,3 @@
be6651
 #as: --32 -mrelax-relocations=yes
be6651
 #ld: -melf_i386 -shared
be6651
-#error: direct GOT relocation R_386_GOT32X against `foo' without base register can not be used when making a shared object
be6651
+#error: direct GOT relocation R_386_GOT32 against `foo' without base register can not be used when making a shared object
be6651
diff -rup binutils.orig/ld/testsuite/ld-i386/load3.d binutils-2.27/ld/testsuite/ld-i386/load3.d
be6651
--- binutils.orig/ld/testsuite/ld-i386/load3.d	2017-10-25 12:52:20.663282518 +0100
be6651
+++ binutils-2.27/ld/testsuite/ld-i386/load3.d	2017-10-25 15:31:24.220052664 +0100
be6651
@@ -1,3 +1,3 @@
be6651
 #as: --32 -mrelax-relocations=yes
be6651
 #ld: -melf_i386 -shared
be6651
-#error: direct GOT relocation R_386_GOT32X against `foo' without base register can not be used when making a shared object
be6651
+#error: direct GOT relocation R_386_GOT32 against `foo' without base register can not be used when making a shared object
be6651
diff -rup binutils.orig/ld/testsuite/ld-i386/load4a.d binutils-2.27/ld/testsuite/ld-i386/load4a.d
be6651
--- binutils.orig/ld/testsuite/ld-i386/load4a.d	2017-10-25 12:52:20.663282518 +0100
be6651
+++ binutils-2.27/ld/testsuite/ld-i386/load4a.d	2017-10-25 15:31:33.802941960 +0100
be6651
@@ -1,4 +1,4 @@
be6651
 #source: load4.s
be6651
 #as: --32 -mrelax-relocations=yes
be6651
 #ld: -Bsymbolic -shared -melf_i386
be6651
-#error: direct GOT relocation R_386_GOT32X against `foo' without base register can not be used when making a shared object
be6651
+#error: direct GOT relocation R_386_GOT32 against `foo' without base register can not be used when making a shared object
be6651
diff -rup binutils.orig/ld/testsuite/ld-i386/load4b.d binutils-2.27/ld/testsuite/ld-i386/load4b.d
be6651
--- binutils.orig/ld/testsuite/ld-i386/load4b.d	2017-10-25 12:52:20.663282518 +0100
be6651
+++ binutils-2.27/ld/testsuite/ld-i386/load4b.d	2017-10-25 15:31:50.701746743 +0100
be6651
@@ -2,6 +2,8 @@
be6651
 #as: --32
be6651
 #ld: -melf_i386
be6651
 #objdump: -dw
be6651
+#xfail: *-*-*
be6651
+# XFAILed because generation of the R_386_GOT32X relocs is currently suppressed.
be6651
 
be6651
 .*: +file format .*
be6651
 
be6651
diff -rup binutils.orig/ld/testsuite/ld-i386/load5a.d binutils-2.27/ld/testsuite/ld-i386/load5a.d
be6651
--- binutils.orig/ld/testsuite/ld-i386/load5a.d	2017-10-25 12:52:20.663282518 +0100
be6651
+++ binutils-2.27/ld/testsuite/ld-i386/load5a.d	2017-10-25 15:31:59.182648770 +0100
be6651
@@ -1,4 +1,4 @@
be6651
 #source: load5.s
be6651
 #as: --32 -mrelax-relocations=yes
be6651
 #ld: -Bsymbolic -shared -melf_i386
be6651
-#error: direct GOT relocation R_386_GOT32X against `foo' without base register can not be used when making a shared object
be6651
+#error: direct GOT relocation R_386_GOT32 against `foo' without base register can not be used when making a shared object
be6651
diff -rup binutils.orig/ld/testsuite/ld-i386/load5b.d binutils-2.27/ld/testsuite/ld-i386/load5b.d
be6651
--- binutils.orig/ld/testsuite/ld-i386/load5b.d	2017-10-25 12:52:20.663282518 +0100
be6651
+++ binutils-2.27/ld/testsuite/ld-i386/load5b.d	2017-10-25 15:32:05.614574468 +0100
be6651
@@ -2,6 +2,8 @@
be6651
 #as: --32
be6651
 #ld: -melf_i386
be6651
 #objdump: -dw
be6651
+#xfail: *-*-*
be6651
+# XFAILed because generation of the R_386_GOT32X relocs is currently suppressed.
be6651
 
be6651
 .*: +file format .*
be6651
 
be6651
diff -rup binutils.orig/ld/testsuite/ld-i386/load7.d binutils-2.27/ld/testsuite/ld-i386/load7.d
be6651
--- binutils.orig/ld/testsuite/ld-i386/load7.d	2017-10-25 12:52:20.663282518 +0100
be6651
+++ binutils-2.27/ld/testsuite/ld-i386/load7.d	2017-10-25 15:32:15.231463372 +0100
be6651
@@ -1,6 +1,8 @@
be6651
 #as: --32 -mrelax-relocations=yes
be6651
 #ld: -shared -melf_i386 --version-script load7.map
be6651
 #objdump: -dw
be6651
+#xfail: *-*-*
be6651
+# XFAILed because generation of the R_386_GOT32X relocs is currently suppressed.
be6651
 
be6651
 .*: +file format .*
be6651
 
be6651
diff -rup binutils.orig/ld/testsuite/ld-i386/mov1b.d binutils-2.27/ld/testsuite/ld-i386/mov1b.d
be6651
--- binutils.orig/ld/testsuite/ld-i386/mov1b.d	2017-10-25 12:52:20.664282507 +0100
be6651
+++ binutils-2.27/ld/testsuite/ld-i386/mov1b.d	2017-10-25 15:26:17.582594986 +0100
be6651
@@ -2,6 +2,8 @@
be6651
 #as: --32 -mrelax-relocations=yes
be6651
 #ld: -pie -melf_i386 --no-dynamic-linker
be6651
 #objdump: -dw
be6651
+#xfail: *-*-*
be6651
+# XFAILed because generation of the R_386_GOT32X relocs is currently suppressed.
be6651
 
be6651
 .*: +file format .*
be6651
 
be6651
diff -rup binutils.orig/ld/testsuite/ld-i386/pr19175.d binutils-2.27/ld/testsuite/ld-i386/pr19175.d
be6651
--- binutils.orig/ld/testsuite/ld-i386/pr19175.d	2017-10-25 12:52:20.671282426 +0100
be6651
+++ binutils-2.27/ld/testsuite/ld-i386/pr19175.d	2017-10-25 15:34:05.638187937 +0100
be6651
@@ -2,6 +2,8 @@
be6651
 #as: --32 -mrelax-relocations=yes
be6651
 #ld: -Bsymbolic -shared -melf_i386 -T pr19175.t
be6651
 #objdump: -dw
be6651
+#xfail: *-*-*
be6651
+# XFAILed because generation of the R_386_GOT32X relocs is currently suppressed.
be6651
 
be6651
 .*: +file format .*
be6651
 
be6651
diff -rup binutils.orig/ld/testsuite/ld-i386/pr19609-1a.d binutils-2.27/ld/testsuite/ld-i386/pr19609-1a.d
be6651
--- binutils.orig/ld/testsuite/ld-i386/pr19609-1a.d	2017-10-25 12:52:20.672282414 +0100
be6651
+++ binutils-2.27/ld/testsuite/ld-i386/pr19609-1a.d	2017-10-25 15:34:17.143055031 +0100
be6651
@@ -2,6 +2,8 @@
be6651
 #as: --32 -mrelax-relocations=yes
be6651
 #ld: -melf_i386
be6651
 #objdump: -dw
be6651
+#xfail: *-*-*
be6651
+# XFAILed because generation of the R_386_GOT32X relocs is currently suppressed.
be6651
 
be6651
 .*: +file format .*
be6651
 
be6651
diff -rup binutils.orig/ld/testsuite/ld-i386/pr19609-1b.d binutils-2.27/ld/testsuite/ld-i386/pr19609-1b.d
be6651
--- binutils.orig/ld/testsuite/ld-i386/pr19609-1b.d	2017-10-25 12:52:20.672282414 +0100
be6651
+++ binutils-2.27/ld/testsuite/ld-i386/pr19609-1b.d	2017-10-25 15:34:25.735955848 +0100
be6651
@@ -2,6 +2,8 @@
be6651
 #as: --32 -mrelax-relocations=yes
be6651
 #ld: -pie -melf_i386 --no-dynamic-linker
be6651
 #objdump: -dw
be6651
+#xfail: *-*-*
be6651
+# XFAILed because generation of the R_386_GOT32X relocs is currently suppressed.
be6651
 
be6651
 .*: +file format .*
be6651
 
be6651
diff -rup binutils.orig/ld/testsuite/ld-i386/pr19609-1d.d binutils-2.27/ld/testsuite/ld-i386/pr19609-1d.d
be6651
--- binutils.orig/ld/testsuite/ld-i386/pr19609-1d.d	2017-10-25 12:52:20.673282403 +0100
be6651
+++ binutils-2.27/ld/testsuite/ld-i386/pr19609-1d.d	2017-10-25 15:35:05.258500067 +0100
be6651
@@ -2,6 +2,8 @@
be6651
 #as: --32 -mrelax-relocations=yes
be6651
 #ld: -E -melf_i386 --no-dynamic-linker
be6651
 #objdump: -dw
be6651
+#xfail: *-*-*
be6651
+# XFAILed because generation of the R_386_GOT32X relocs is currently suppressed.
be6651
 
be6651
 .*: +file format .*
be6651
 
be6651
diff -rup binutils.orig/ld/testsuite/ld-i386/pr19609-1f.d binutils-2.27/ld/testsuite/ld-i386/pr19609-1f.d
be6651
--- binutils.orig/ld/testsuite/ld-i386/pr19609-1f.d	2017-10-25 12:52:20.673282403 +0100
be6651
+++ binutils-2.27/ld/testsuite/ld-i386/pr19609-1f.d	2017-10-25 15:35:18.620345975 +0100
be6651
@@ -2,6 +2,8 @@
be6651
 #as: --32 -mrelax-relocations=yes
be6651
 #ld: -pie --dynamic-list-data -melf_i386 --no-dynamic-linker
be6651
 #objdump: -dw
be6651
+#xfail: *-*-*
be6651
+# XFAILed because generation of the R_386_GOT32X relocs is currently suppressed.
be6651
 
be6651
 .*: +file format .*
be6651
 
be6651
diff -rup binutils.orig/ld/testsuite/ld-i386/pr19609-1g.d binutils-2.27/ld/testsuite/ld-i386/pr19609-1g.d
be6651
--- binutils.orig/ld/testsuite/ld-i386/pr19609-1g.d	2017-10-25 12:52:20.673282403 +0100
be6651
+++ binutils-2.27/ld/testsuite/ld-i386/pr19609-1g.d	2017-10-25 15:35:26.379256499 +0100
be6651
@@ -2,6 +2,8 @@
be6651
 #as: --32 -mrelax-relocations=yes
be6651
 #ld: -pie -E -melf_i386 --no-dynamic-linker
be6651
 #objdump: -dw
be6651
+#xfail: *-*-*
be6651
+# XFAILed because generation of the R_386_GOT32X relocs is currently suppressed.
be6651
 
be6651
 .*: +file format .*
be6651
 
be6651
diff -rup binutils.orig/ld/testsuite/ld-i386/pr19609-1h.d binutils-2.27/ld/testsuite/ld-i386/pr19609-1h.d
be6651
--- binutils.orig/ld/testsuite/ld-i386/pr19609-1h.d	2017-10-25 12:52:20.673282403 +0100
be6651
+++ binutils-2.27/ld/testsuite/ld-i386/pr19609-1h.d	2017-10-25 15:35:33.308176593 +0100
be6651
@@ -2,6 +2,8 @@
be6651
 #as: --32 -mrelax-relocations=yes
be6651
 #ld: -pie -E -Bsymbolic-functions -melf_i386 --no-dynamic-linker
be6651
 #objdump: -dw
be6651
+#xfail: *-*-*
be6651
+# XFAILed because generation of the R_386_GOT32X relocs is currently suppressed.
be6651
 
be6651
 .*: +file format .*
be6651
 
be6651
diff -rup binutils.orig/ld/testsuite/ld-i386/pr19609-2a.d binutils-2.27/ld/testsuite/ld-i386/pr19609-2a.d
be6651
--- binutils.orig/ld/testsuite/ld-i386/pr19609-2a.d	2017-10-25 12:52:20.673282403 +0100
be6651
+++ binutils-2.27/ld/testsuite/ld-i386/pr19609-2a.d	2017-10-25 15:35:46.253027313 +0100
be6651
@@ -2,6 +2,8 @@
be6651
 #as: --32 -mrelax-relocations=yes
be6651
 #ld: -melf_i386
be6651
 #objdump: -dw
be6651
+#xfail: *-*-*
be6651
+# XFAILed because generation of the R_386_GOT32X relocs is currently suppressed.
be6651
 
be6651
 .*: +file format .*
be6651
 
be6651
diff -rup binutils.orig/ld/testsuite/ld-i386/pr20244-2d.d binutils-2.27/ld/testsuite/ld-i386/pr20244-2d.d
be6651
--- binutils.orig/ld/testsuite/ld-i386/pr20244-2d.d	2017-10-25 12:52:20.677282356 +0100
be6651
+++ binutils-2.27/ld/testsuite/ld-i386/pr20244-2d.d	2017-10-25 15:38:34.521086821 +0100
be6651
@@ -1,4 +1,4 @@
be6651
 #source: pr20244-2.s
be6651
 #as: --32
be6651
 #ld: -pie -m elf_i386
be6651
-#error: direct GOT relocation R_386_GOT32X against `foo' without base register can not be used when making a shared object
be6651
+#error: direct GOT relocation R_386_GOT32 against `foo' without base register can not be used when making a shared object
be6651
diff -rup binutils.orig/ld/testsuite/ld-i386/pr20253-4b.d binutils-2.27/ld/testsuite/ld-i386/pr20253-4b.d
be6651
--- binutils.orig/ld/testsuite/ld-i386/pr20253-4b.d	2017-10-25 12:52:20.678282345 +0100
be6651
+++ binutils-2.27/ld/testsuite/ld-i386/pr20253-4b.d	2017-10-25 15:36:45.185347695 +0100
be6651
@@ -2,6 +2,8 @@
be6651
 #as: --32 -mrelax-relocations=yes
be6651
 #ld: -pie -melf_i386
be6651
 #readelf: -r --wide
be6651
+#xfail: *-*-*
be6651
+# XFAILed because generation of the R_386_GOT32X relocs is currently suppressed.
be6651
 
be6651
 Relocation section '.rel.dyn' at offset 0x[0-9a-f]+ contains 1 entries:
be6651
  +Offset +Info +Type +Sym.* Value +Symbol's Name
be6651
diff -rup binutils.orig/ld/testsuite/ld-i386/tlspie3a.d binutils-2.27/ld/testsuite/ld-i386/tlspie3a.d
be6651
--- binutils.orig/ld/testsuite/ld-i386/tlspie3a.d	2017-10-25 12:52:20.682282298 +0100
be6651
+++ binutils-2.27/ld/testsuite/ld-i386/tlspie3a.d	2017-10-25 15:25:02.726459735 +0100
be6651
@@ -2,5 +2,7 @@
be6651
 #as: --32 -mrelax-relocations=yes
be6651
 #ld: -melf_i386 -pie
be6651
 #readelf: -r
be6651
+#xfail: *-*-*
be6651
+# XFAILed because generation of the R_386_GOT32X relocs is currently suppressed.
be6651
 
be6651
 There are no relocations in this file.
be6651
diff -rup binutils.orig/ld/testsuite/ld-i386/tlspie3b.d binutils-2.27/ld/testsuite/ld-i386/tlspie3b.d
be6651
--- binutils.orig/ld/testsuite/ld-i386/tlspie3b.d	2017-10-25 12:52:20.682282298 +0100
be6651
+++ binutils-2.27/ld/testsuite/ld-i386/tlspie3b.d	2017-10-25 15:25:10.854365839 +0100
be6651
@@ -2,6 +2,8 @@
be6651
 #as: --32 -mrelax-relocations=yes
be6651
 #ld: -melf_i386 -pie
be6651
 #objdump: -dwr
be6651
+#xfail: *-*-*
be6651
+# XFAILed because generation of the R_386_GOT32X relocs is currently suppressed.
be6651
 
be6651
 .*: +file format .*
be6651
 
be6651
diff -rup binutils.orig/ld/testsuite/ld-i386/tlspie3c.d binutils-2.27/ld/testsuite/ld-i386/tlspie3c.d
be6651
--- binutils.orig/ld/testsuite/ld-i386/tlspie3c.d	2017-10-25 12:52:20.682282298 +0100
be6651
+++ binutils-2.27/ld/testsuite/ld-i386/tlspie3c.d	2017-10-25 15:25:21.319244949 +0100
be6651
@@ -2,6 +2,8 @@
be6651
 #as: --32 -mrelax-relocations=yes
be6651
 #ld: -melf_i386 -pie -z call-nop=suffix-nop
be6651
 #objdump: -dwr
be6651
+#xfail: *-*-*
be6651
+# XFAILed because generation of the R_386_GOT32X relocs is currently suppressed.
be6651
 
be6651
 .*: +file format .*
be6651
 
be6651
diff -rup binutils.orig/ld/testsuite/ld-ifunc/ifunc-13-i386.d binutils-2.27/ld/testsuite/ld-ifunc/ifunc-13-i386.d
be6651
--- binutils.orig/ld/testsuite/ld-ifunc/ifunc-13-i386.d	2017-10-25 12:52:20.686282252 +0100
be6651
+++ binutils-2.27/ld/testsuite/ld-ifunc/ifunc-13-i386.d	2017-10-25 15:22:29.230232946 +0100
be6651
@@ -4,6 +4,8 @@
be6651
 #as: --32 -mrelax-relocations=yes
be6651
 #readelf: -r --wide
be6651
 #target: x86_64-*-* i?86-*-*
be6651
+#xfail: *-*-*
be6651
+# XFAILed because generation of the R_386_GOT32X relocs is currently suppressed.
be6651
 
be6651
 Relocation section '.rel.ifunc' at offset 0x[0-9a-f]+ contains 1 entries:
be6651
 [ ]+Offset[ ]+Info[ ]+Type[ ]+.*
be6651
diff -rup binutils.orig/ld/testsuite/ld-ifunc/ifunc-21-i386.d binutils-2.27/ld/testsuite/ld-ifunc/ifunc-21-i386.d
be6651
--- binutils.orig/ld/testsuite/ld-ifunc/ifunc-21-i386.d	2017-10-25 12:52:20.688282229 +0100
be6651
+++ binutils-2.27/ld/testsuite/ld-ifunc/ifunc-21-i386.d	2017-10-25 15:23:08.637777705 +0100
be6651
@@ -2,6 +2,8 @@
be6651
 #as: --32 -mrelax-relocations=yes
be6651
 #objdump: -dw
be6651
 #target: x86_64-*-* i?86-*-*
be6651
+#xfail: *-*-*
be6651
+# XFAILed because generation of the R_386_GOT32X relocs is currently suppressed.
be6651
 
be6651
 .*: +file format .*
be6651
 
be6651
diff -rup binutils.orig/ld/testsuite/ld-ifunc/ifunc-21-x86-64.d binutils-2.27/ld/testsuite/ld-ifunc/ifunc-21-x86-64.d
be6651
--- binutils.orig/ld/testsuite/ld-ifunc/ifunc-21-x86-64.d	2017-10-25 12:52:20.690282205 +0100
be6651
+++ binutils-2.27/ld/testsuite/ld-ifunc/ifunc-21-x86-64.d	2017-10-25 15:12:35.549099037 +0100
be6651
@@ -2,6 +2,8 @@
be6651
 #ld: -melf_x86_64
be6651
 #objdump: -dw
be6651
 #target: x86_64-*-*
be6651
+#xfail: *-*-*
be6651
+# XFAILed because generation of the R_X86_64_REX_GOTPCRELX and R_X86_64_GOTPCRELX relocs is currently suppressed.
be6651
 
be6651
 .*: +file format .*
be6651
 
be6651
diff -rup binutils.orig/ld/testsuite/ld-ifunc/ifunc-22-i386.d binutils-2.27/ld/testsuite/ld-ifunc/ifunc-22-i386.d
be6651
--- binutils.orig/ld/testsuite/ld-ifunc/ifunc-22-i386.d	2017-10-25 12:52:20.688282229 +0100
be6651
+++ binutils-2.27/ld/testsuite/ld-ifunc/ifunc-22-i386.d	2017-10-25 15:23:00.698869415 +0100
be6651
@@ -2,6 +2,8 @@
be6651
 #as: --32 -mrelax-relocations=yes
be6651
 #objdump: -dw
be6651
 #target: x86_64-*-* i?86-*-*
be6651
+#xfail: *-*-*
be6651
+# XFAILed because generation of the R_386_GOT32X relocs is currently suppressed.
be6651
 
be6651
 .*: +file format .*
be6651
 
be6651
diff -rup binutils.orig/ld/testsuite/ld-ifunc/ifunc-22-x86-64.d binutils-2.27/ld/testsuite/ld-ifunc/ifunc-22-x86-64.d
be6651
--- binutils.orig/ld/testsuite/ld-ifunc/ifunc-22-x86-64.d	2017-10-25 12:52:20.690282205 +0100
be6651
+++ binutils-2.27/ld/testsuite/ld-ifunc/ifunc-22-x86-64.d	2017-10-25 15:12:35.549099037 +0100
be6651
@@ -2,6 +2,8 @@
be6651
 #ld: -melf_x86_64
be6651
 #objdump: -dw
be6651
 #target: x86_64-*-*
be6651
+#xfail: *-*-*
be6651
+# XFAILed because generation of the R_X86_64_REX_GOTPCRELX and R_X86_64_GOTPCRELX relocs is currently suppressed.
be6651
 
be6651
 .*: +file format .*
be6651
 
be6651
diff -rup binutils.orig/ld/testsuite/ld-ifunc/ifunc-5r-local-x86-64.d binutils-2.27/ld/testsuite/ld-ifunc/ifunc-5r-local-x86-64.d
be6651
--- binutils.orig/ld/testsuite/ld-ifunc/ifunc-5r-local-x86-64.d	2017-10-25 12:52:20.689282217 +0100
be6651
+++ binutils-2.27/ld/testsuite/ld-ifunc/ifunc-5r-local-x86-64.d	2017-10-25 15:12:35.549099037 +0100
be6651
@@ -3,6 +3,8 @@
be6651
 #ld: -r -melf_x86_64
be6651
 #readelf: -r --wide
be6651
 #target: x86_64-*-*
be6651
+#xfail: *-*-*
be6651
+# XFAILed because generation of the R_X86_64_REX_GOTPCRELX and R_X86_64_GOTPCRELX relocs is currently suppressed.
be6651
 
be6651
 Relocation section '.rela.text' at .*
be6651
 [ ]+Offset[ ]+Info[ ]+Type[ ]+.*
be6651
diff -rup binutils.orig/ld/testsuite/ld-selective/selective.exp binutils-2.27/ld/testsuite/ld-selective/selective.exp
be6651
--- binutils.orig/ld/testsuite/ld-selective/selective.exp	2017-10-25 12:52:20.872280095 +0100
be6651
+++ binutils-2.27/ld/testsuite/ld-selective/selective.exp	2017-10-25 15:21:30.397912586 +0100
be6651
@@ -102,7 +102,7 @@ foreach testitem $seltests {
be6651
 	# the functionality we try to test for cannot be expected to work.
be6651
 	set version [remote_exec host "$CXX -dumpversion"]
be6651
 	set version [lindex $version 1]
be6651
-	if [regexp "^(\[1-9\]\[0-9\]+|\[4-9\]|3.(\[1-9\]\[0-9\]+|\[4-9\]))\\." $version] {
be6651
+	if [regexp "^(\[1-9\]\[0-9\]+|\[4-9\]|3.(\[1-9\]\[0-9\]+|\[4-9\]))" $version] {
be6651
 	    set testflags "$cflags $cxxflags"
be6651
 	    setup_xfail {*-*-*}
be6651
 	} else {
be6651
diff -rup binutils.orig/ld/testsuite/ld-x86-64/call1a.d binutils-2.27/ld/testsuite/ld-x86-64/call1a.d
be6651
--- binutils.orig/ld/testsuite/ld-x86-64/call1a.d	2017-10-25 12:52:21.010278494 +0100
be6651
+++ binutils-2.27/ld/testsuite/ld-x86-64/call1a.d	2017-10-25 15:12:35.550099025 +0100
be6651
@@ -2,6 +2,8 @@
be6651
 #as: --64 -mrelax-relocations=yes
be6651
 #ld: -melf_x86_64
be6651
 #objdump: -dw
be6651
+#xfail: *-*-*
be6651
+# XFAILed because generation of the R_X86_64_REX_GOTPCRELX and R_X86_64_GOTPCRELX relocs is currently suppressed.
be6651
 
be6651
 .*: +file format .*
be6651
 
be6651
diff -rup binutils.orig/ld/testsuite/ld-x86-64/call1b.d binutils-2.27/ld/testsuite/ld-x86-64/call1b.d
be6651
--- binutils.orig/ld/testsuite/ld-x86-64/call1b.d	2017-10-25 12:52:21.010278494 +0100
be6651
+++ binutils-2.27/ld/testsuite/ld-x86-64/call1b.d	2017-10-25 15:12:35.550099025 +0100
be6651
@@ -2,6 +2,8 @@
be6651
 #as: --64 -mrelax-relocations=yes
be6651
 #ld: -melf_x86_64 -z call-nop=prefix-addr
be6651
 #objdump: -dw
be6651
+#xfail: *-*-*
be6651
+# XFAILed because generation of the R_X86_64_REX_GOTPCRELX and R_X86_64_GOTPCRELX relocs is currently suppressed.
be6651
 
be6651
 .*: +file format .*
be6651
 
be6651
diff -rup binutils.orig/ld/testsuite/ld-x86-64/call1c.d binutils-2.27/ld/testsuite/ld-x86-64/call1c.d
be6651
--- binutils.orig/ld/testsuite/ld-x86-64/call1c.d	2017-10-25 12:52:21.010278494 +0100
be6651
+++ binutils-2.27/ld/testsuite/ld-x86-64/call1c.d	2017-10-25 15:12:35.550099025 +0100
be6651
@@ -2,6 +2,8 @@
be6651
 #as: --64 -mrelax-relocations=yes
be6651
 #ld: -melf_x86_64 -z call-nop=prefix-nop
be6651
 #objdump: -dw
be6651
+#xfail: *-*-*
be6651
+# XFAILed because generation of the R_X86_64_REX_GOTPCRELX and R_X86_64_GOTPCRELX relocs is currently suppressed.
be6651
 
be6651
 .*: +file format .*
be6651
 
be6651
diff -rup binutils.orig/ld/testsuite/ld-x86-64/call1d.d binutils-2.27/ld/testsuite/ld-x86-64/call1d.d
be6651
--- binutils.orig/ld/testsuite/ld-x86-64/call1d.d	2017-10-25 12:52:21.011278483 +0100
be6651
+++ binutils-2.27/ld/testsuite/ld-x86-64/call1d.d	2017-10-25 15:12:35.550099025 +0100
be6651
@@ -2,6 +2,8 @@
be6651
 #as: --64 -mrelax-relocations=yes
be6651
 #ld: -melf_x86_64 -z call-nop=suffix-nop
be6651
 #objdump: -dw
be6651
+#xfail: *-*-*
be6651
+# XFAILed because generation of the R_X86_64_REX_GOTPCRELX and R_X86_64_GOTPCRELX relocs is currently suppressed.
be6651
 
be6651
 .*: +file format .*
be6651
 
be6651
diff -rup binutils.orig/ld/testsuite/ld-x86-64/call1e.d binutils-2.27/ld/testsuite/ld-x86-64/call1e.d
be6651
--- binutils.orig/ld/testsuite/ld-x86-64/call1e.d	2017-10-25 12:52:21.011278483 +0100
be6651
+++ binutils-2.27/ld/testsuite/ld-x86-64/call1e.d	2017-10-25 15:12:35.550099025 +0100
be6651
@@ -2,6 +2,8 @@
be6651
 #as: --64 -mrelax-relocations=yes
be6651
 #ld: -melf_x86_64 -z call-nop=prefix-0x67
be6651
 #objdump: -dw
be6651
+#xfail: *-*-*
be6651
+# XFAILed because generation of the R_X86_64_REX_GOTPCRELX and R_X86_64_GOTPCRELX relocs is currently suppressed.
be6651
 
be6651
 .*: +file format .*
be6651
 
be6651
diff -rup binutils.orig/ld/testsuite/ld-x86-64/call1f.d binutils-2.27/ld/testsuite/ld-x86-64/call1f.d
be6651
--- binutils.orig/ld/testsuite/ld-x86-64/call1f.d	2017-10-25 12:52:21.011278483 +0100
be6651
+++ binutils-2.27/ld/testsuite/ld-x86-64/call1f.d	2017-10-25 15:12:35.550099025 +0100
be6651
@@ -2,6 +2,8 @@
be6651
 #as: --64 -mrelax-relocations=yes
be6651
 #ld: -melf_x86_64 -z call-nop=prefix-0x90
be6651
 #objdump: -dw
be6651
+#xfail: *-*-*
be6651
+# XFAILed because generation of the R_X86_64_REX_GOTPCRELX and R_X86_64_GOTPCRELX relocs is currently suppressed.
be6651
 
be6651
 .*: +file format .*
be6651
 
be6651
diff -rup binutils.orig/ld/testsuite/ld-x86-64/call1g.d binutils-2.27/ld/testsuite/ld-x86-64/call1g.d
be6651
--- binutils.orig/ld/testsuite/ld-x86-64/call1g.d	2017-10-25 12:52:21.011278483 +0100
be6651
+++ binutils-2.27/ld/testsuite/ld-x86-64/call1g.d	2017-10-25 15:12:35.550099025 +0100
be6651
@@ -2,6 +2,8 @@
be6651
 #as: --64 -mrelax-relocations=yes
be6651
 #ld: -melf_x86_64 -z call-nop=suffix-0x90
be6651
 #objdump: -dw
be6651
+#xfail: *-*-*
be6651
+# XFAILed because generation of the R_X86_64_REX_GOTPCRELX and R_X86_64_GOTPCRELX relocs is currently suppressed.
be6651
 
be6651
 .*: +file format .*
be6651
 
be6651
diff -rup binutils.orig/ld/testsuite/ld-x86-64/call1h.d binutils-2.27/ld/testsuite/ld-x86-64/call1h.d
be6651
--- binutils.orig/ld/testsuite/ld-x86-64/call1h.d	2017-10-25 12:52:21.011278483 +0100
be6651
+++ binutils-2.27/ld/testsuite/ld-x86-64/call1h.d	2017-10-25 15:12:35.550099025 +0100
be6651
@@ -2,6 +2,8 @@
be6651
 #as: --64 -mrelax-relocations=yes
be6651
 #ld: -melf_x86_64 -z call-nop=suffix-144
be6651
 #objdump: -dw
be6651
+#xfail: *-*-*
be6651
+# XFAILed because generation of the R_X86_64_REX_GOTPCRELX and R_X86_64_GOTPCRELX relocs is currently suppressed.
be6651
 
be6651
 .*: +file format .*
be6651
 
be6651
diff -rup binutils.orig/ld/testsuite/ld-x86-64/call1i.d binutils-2.27/ld/testsuite/ld-x86-64/call1i.d
be6651
--- binutils.orig/ld/testsuite/ld-x86-64/call1i.d	2017-10-25 12:52:21.011278483 +0100
be6651
+++ binutils-2.27/ld/testsuite/ld-x86-64/call1i.d	2017-10-25 15:12:35.550099025 +0100
be6651
@@ -2,6 +2,8 @@
be6651
 #as: --x32 -mrelax-relocations=yes
be6651
 #ld: -melf32_x86_64 -z call-nop=suffix-0x90
be6651
 #objdump: -dw
be6651
+#xfail: *-*-*
be6651
+# XFAILed because generation of the R_X86_64_REX_GOTPCRELX and R_X86_64_GOTPCRELX relocs is currently suppressed.
be6651
 
be6651
 .*: +file format .*
be6651
 
be6651
diff -rup binutils.orig/ld/testsuite/ld-x86-64/lea1c.d binutils-2.27/ld/testsuite/ld-x86-64/lea1c.d
be6651
--- binutils.orig/ld/testsuite/ld-x86-64/lea1c.d	2017-10-25 12:52:21.015278436 +0100
be6651
+++ binutils-2.27/ld/testsuite/ld-x86-64/lea1c.d	2017-10-25 15:12:35.550099025 +0100
be6651
@@ -2,6 +2,8 @@
be6651
 #as: --64 -mrelax-relocations=yes
be6651
 #ld: -melf_x86_64
be6651
 #objdump: -dw
be6651
+#xfail: *-*-*
be6651
+# XFAILed because generation of the R_X86_64_REX_GOTPCRELX and R_X86_64_GOTPCRELX relocs is currently suppressed.
be6651
 
be6651
 .*: +file format .*
be6651
 
be6651
diff -rup binutils.orig/ld/testsuite/ld-x86-64/lea1f.d binutils-2.27/ld/testsuite/ld-x86-64/lea1f.d
be6651
--- binutils.orig/ld/testsuite/ld-x86-64/lea1f.d	2017-10-25 12:52:21.016278425 +0100
be6651
+++ binutils-2.27/ld/testsuite/ld-x86-64/lea1f.d	2017-10-25 15:12:35.550099025 +0100
be6651
@@ -2,6 +2,8 @@
be6651
 #as: --x32 -mrelax-relocations=yes
be6651
 #ld: -melf32_x86_64
be6651
 #objdump: -dw
be6651
+#xfail: *-*-*
be6651
+# XFAILed because generation of the R_X86_64_REX_GOTPCRELX and R_X86_64_GOTPCRELX relocs is currently suppressed.
be6651
 
be6651
 .*: +file format .*
be6651
 
be6651
diff -rup binutils.orig/ld/testsuite/ld-x86-64/load1a.d binutils-2.27/ld/testsuite/ld-x86-64/load1a.d
be6651
--- binutils.orig/ld/testsuite/ld-x86-64/load1a.d	2017-10-25 12:52:21.016278425 +0100
be6651
+++ binutils-2.27/ld/testsuite/ld-x86-64/load1a.d	2017-10-25 15:12:35.550099025 +0100
be6651
@@ -3,6 +3,8 @@
be6651
 #ld: -melf_x86_64
be6651
 #objdump: -dw --sym
be6651
 #notarget: x86_64-*-nacl*
be6651
+#xfail: *-*-*
be6651
+# XFAILed because generation of the R_X86_64_REX_GOTPCRELX and R_X86_64_GOTPCRELX relocs is currently suppressed.
be6651
 
be6651
 .*: +file format .*
be6651
 
be6651
diff -rup binutils.orig/ld/testsuite/ld-x86-64/load1b.d binutils-2.27/ld/testsuite/ld-x86-64/load1b.d
be6651
--- binutils.orig/ld/testsuite/ld-x86-64/load1b.d	2017-10-25 12:52:21.017278414 +0100
be6651
+++ binutils-2.27/ld/testsuite/ld-x86-64/load1b.d	2017-10-25 15:12:35.550099025 +0100
be6651
@@ -3,6 +3,8 @@
be6651
 #ld: -melf32_x86_64
be6651
 #objdump: -dw --sym
be6651
 #notarget: x86_64-*-nacl*
be6651
+#xfail: *-*-*
be6651
+# XFAILed because generation of the R_X86_64_REX_GOTPCRELX and R_X86_64_GOTPCRELX relocs is currently suppressed.
be6651
 
be6651
 .*: +file format .*
be6651
 
be6651
diff -rup binutils.orig/ld/testsuite/ld-x86-64/mov1b.d binutils-2.27/ld/testsuite/ld-x86-64/mov1b.d
be6651
--- binutils.orig/ld/testsuite/ld-x86-64/mov1b.d	2017-10-25 12:52:21.041278135 +0100
be6651
+++ binutils-2.27/ld/testsuite/ld-x86-64/mov1b.d	2017-10-25 15:12:35.550099025 +0100
be6651
@@ -2,6 +2,8 @@
be6651
 #as: --64 -mrelax-relocations=yes
be6651
 #ld: -pie -melf_x86_64 --no-dynamic-linker
be6651
 #objdump: -dw
be6651
+#xfail: *-*-*
be6651
+# XFAILed because generation of the R_X86_64_REX_GOTPCRELX and R_X86_64_GOTPCRELX relocs is currently suppressed.
be6651
 
be6651
 .*: +file format .*
be6651
 
be6651
diff -rup binutils.orig/ld/testsuite/ld-x86-64/mov1d.d binutils-2.27/ld/testsuite/ld-x86-64/mov1d.d
be6651
--- binutils.orig/ld/testsuite/ld-x86-64/mov1d.d	2017-10-25 12:52:21.041278135 +0100
be6651
+++ binutils-2.27/ld/testsuite/ld-x86-64/mov1d.d	2017-10-25 15:12:35.551099013 +0100
be6651
@@ -2,6 +2,8 @@
be6651
 #as: --x32 -mrelax-relocations=yes
be6651
 #ld: -pie -melf32_x86_64 --no-dynamic-linker
be6651
 #objdump: -dw
be6651
+#xfail: *-*-*
be6651
+# XFAILed because generation of the R_X86_64_REX_GOTPCRELX and R_X86_64_GOTPCRELX relocs is currently suppressed.
be6651
 
be6651
 .*: +file format .*
be6651
 
be6651
diff -rup binutils.orig/ld/testsuite/ld-x86-64/no-plt.exp binutils-2.27/ld/testsuite/ld-x86-64/no-plt.exp
be6651
--- binutils.orig/ld/testsuite/ld-x86-64/no-plt.exp	2017-10-25 12:52:21.020278378 +0100
be6651
+++ binutils-2.27/ld/testsuite/ld-x86-64/no-plt.exp	2017-10-25 15:12:35.551099013 +0100
be6651
@@ -70,15 +70,6 @@ run_cc_link_tests [list \
be6651
 	"libno-plt-1b.so" \
be6651
     ] \
be6651
     [list \
be6651
-	"No PLT (dynamic 1a)" \
be6651
-	"tmpdir/no-plt-check1.o tmpdir/no-plt-main1.o \
be6651
-	 tmpdir/no-plt-func1.o tmpdir/no-plt-extern1.o" \
be6651
-	"" \
be6651
-	{dummy.s} \
be6651
-	{{readelf -Wr no-plt-1a.rd} {objdump -dwrj.text no-plt-1a.dd}} \
be6651
-	"no-plt-1a" \
be6651
-    ] \
be6651
-    [list \
be6651
 	"No PLT (dynamic 1b)" \
be6651
 	"tmpdir/no-plt-check1.o tmpdir/no-plt-main1.o \
be6651
 	 tmpdir/libno-plt-1a.so tmpdir/libno-plt-1b.so" \
be6651
@@ -88,33 +79,6 @@ run_cc_link_tests [list \
be6651
 	"no-plt-1b" \
be6651
     ] \
be6651
     [list \
be6651
-	"No PLT (dynamic 1c)" \
be6651
-	"tmpdir/no-plt-check1.o tmpdir/no-plt-main1.o \
be6651
-	 tmpdir/no-plt-func1.o tmpdir/libno-plt-1b.so" \
be6651
-	"" \
be6651
-	{dummy.s} \
be6651
-	{{readelf -Wr no-plt-1c.rd} {objdump -dwrj.text no-plt-1c.dd}} \
be6651
-	"no-plt-1c" \
be6651
-    ] \
be6651
-    [list \
be6651
-	"No PLT (static 1d)" \
be6651
-	"-static tmpdir/no-plt-check1.o tmpdir/no-plt-main1.o \
be6651
-	 tmpdir/no-plt-func1.o tmpdir/no-plt-extern1.o" \
be6651
-	"" \
be6651
-	{dummy.s} \
be6651
-	{{readelf -Wr no-plt-1d.rd} {objdump -dwrj.text no-plt-1d.dd}} \
be6651
-	"no-plt-1d" \
be6651
-    ] \
be6651
-    [list \
be6651
-	"No PLT (PIE 1e)" \
be6651
-	"-pie tmpdir/no-plt-check1.o tmpdir/no-plt-main1.o \
be6651
-	 tmpdir/no-plt-func1.o tmpdir/no-plt-extern1.o" \
be6651
-	"" \
be6651
-	{dummy.s} \
be6651
-	{{readelf -Wr no-plt-1e.rd} {objdump -dwrj.text no-plt-1e.dd}} \
be6651
-	"no-plt-1e" \
be6651
-    ] \
be6651
-    [list \
be6651
 	"No PLT (PIE 1f)" \
be6651
 	"-pie tmpdir/no-plt-check1.o tmpdir/no-plt-main1.o \
be6651
 	 tmpdir/libno-plt-1a.so tmpdir/libno-plt-1b.so" \
be6651
@@ -123,15 +87,6 @@ run_cc_link_tests [list \
be6651
 	{{readelf -Wr no-plt-1f.rd} {objdump -dwrj.text no-plt-1f.dd}} \
be6651
 	"no-plt-1f" \
be6651
     ] \
be6651
-    [list \
be6651
-	"No PLT (PIE 1g)" \
be6651
-	"-pie tmpdir/no-plt-check1.o tmpdir/no-plt-main1.o \
be6651
-	 tmpdir/no-plt-func1.o tmpdir/libno-plt-1b.so" \
be6651
-	"" \
be6651
-	{ dummy.s } \
be6651
-	{{readelf -Wr no-plt-1g.rd} {objdump -dwrj.text no-plt-1g.dd}} \
be6651
-	"no-plt-1g" \
be6651
-    ] \
be6651
 ]
be6651
 
be6651
 run_ld_link_exec_tests [] [list \
be6651
diff -rup binutils.orig/ld/testsuite/ld-x86-64/pr19609-1a.d binutils-2.27/ld/testsuite/ld-x86-64/pr19609-1a.d
be6651
--- binutils.orig/ld/testsuite/ld-x86-64/pr19609-1a.d	2017-10-25 12:52:21.029278274 +0100
be6651
+++ binutils-2.27/ld/testsuite/ld-x86-64/pr19609-1a.d	2017-10-25 15:12:35.551099013 +0100
be6651
@@ -2,6 +2,8 @@
be6651
 #as: --64 -mrelax-relocations=yes
be6651
 #ld: -melf_x86_64 --no-relax
be6651
 #objdump: -dw
be6651
+#xfail: *-*-*
be6651
+# XFAILed because generation of the R_X86_64_REX_GOTPCRELX and R_X86_64_GOTPCRELX relocs is currently suppressed.
be6651
 
be6651
 .*: +file format .*
be6651
 
be6651
diff -rup binutils.orig/ld/testsuite/ld-x86-64/pr19609-1b.d binutils-2.27/ld/testsuite/ld-x86-64/pr19609-1b.d
be6651
--- binutils.orig/ld/testsuite/ld-x86-64/pr19609-1b.d	2017-10-25 12:52:21.029278274 +0100
be6651
+++ binutils-2.27/ld/testsuite/ld-x86-64/pr19609-1b.d	2017-10-25 15:12:35.551099013 +0100
be6651
@@ -2,6 +2,8 @@
be6651
 #as: --64 -mrelax-relocations=yes
be6651
 #ld: -pie -melf_x86_64 --no-dynamic-linker
be6651
 #objdump: -dw
be6651
+#xfail: *-*-*
be6651
+# XFAILed because generation of the R_X86_64_REX_GOTPCRELX and R_X86_64_GOTPCRELX relocs is currently suppressed.
be6651
 
be6651
 .*: +file format .*
be6651
 
be6651
diff -rup binutils.orig/ld/testsuite/ld-x86-64/pr19609-1d.d binutils-2.27/ld/testsuite/ld-x86-64/pr19609-1d.d
be6651
--- binutils.orig/ld/testsuite/ld-x86-64/pr19609-1d.d	2017-10-25 12:52:21.029278274 +0100
be6651
+++ binutils-2.27/ld/testsuite/ld-x86-64/pr19609-1d.d	2017-10-25 15:12:35.551099013 +0100
be6651
@@ -2,6 +2,8 @@
be6651
 #as: --64 -mrelax-relocations=yes
be6651
 #ld: -E -melf_x86_64 --no-dynamic-linker
be6651
 #objdump: -dw
be6651
+#xfail: *-*-*
be6651
+# XFAILed because generation of the R_X86_64_REX_GOTPCRELX and R_X86_64_GOTPCRELX relocs is currently suppressed.
be6651
 
be6651
 .*: +file format .*
be6651
 
be6651
diff -rup binutils.orig/ld/testsuite/ld-x86-64/pr19609-1f.d binutils-2.27/ld/testsuite/ld-x86-64/pr19609-1f.d
be6651
--- binutils.orig/ld/testsuite/ld-x86-64/pr19609-1f.d	2017-10-25 12:52:21.029278274 +0100
be6651
+++ binutils-2.27/ld/testsuite/ld-x86-64/pr19609-1f.d	2017-10-25 15:12:35.551099013 +0100
be6651
@@ -2,6 +2,8 @@
be6651
 #as: --64 -mrelax-relocations=yes
be6651
 #ld: -pie --dynamic-list-data -melf_x86_64 --no-dynamic-linker
be6651
 #objdump: -dw
be6651
+#xfail: *-*-*
be6651
+# XFAILed because generation of the R_X86_64_REX_GOTPCRELX and R_X86_64_GOTPCRELX relocs is currently suppressed.
be6651
 
be6651
 .*: +file format .*
be6651
 
be6651
diff -rup binutils.orig/ld/testsuite/ld-x86-64/pr19609-1g.d binutils-2.27/ld/testsuite/ld-x86-64/pr19609-1g.d
be6651
--- binutils.orig/ld/testsuite/ld-x86-64/pr19609-1g.d	2017-10-25 12:52:21.029278274 +0100
be6651
+++ binutils-2.27/ld/testsuite/ld-x86-64/pr19609-1g.d	2017-10-25 15:12:35.551099013 +0100
be6651
@@ -2,6 +2,8 @@
be6651
 #as: --64 -mrelax-relocations=yes
be6651
 #ld: -pie -E -melf_x86_64 --no-dynamic-linker
be6651
 #objdump: -dw
be6651
+#xfail: *-*-*
be6651
+# XFAILed because generation of the R_X86_64_REX_GOTPCRELX and R_X86_64_GOTPCRELX relocs is currently suppressed.
be6651
 
be6651
 .*: +file format .*
be6651
 
be6651
diff -rup binutils.orig/ld/testsuite/ld-x86-64/pr19609-1h.d binutils-2.27/ld/testsuite/ld-x86-64/pr19609-1h.d
be6651
--- binutils.orig/ld/testsuite/ld-x86-64/pr19609-1h.d	2017-10-25 12:52:21.029278274 +0100
be6651
+++ binutils-2.27/ld/testsuite/ld-x86-64/pr19609-1h.d	2017-10-25 15:12:35.551099013 +0100
be6651
@@ -2,6 +2,8 @@
be6651
 #as: --x32 -mrelax-relocations=yes
be6651
 #ld: -melf32_x86_64 --no-relax
be6651
 #objdump: -dw
be6651
+#xfail: *-*-*
be6651
+# XFAILed because generation of the R_X86_64_REX_GOTPCRELX and R_X86_64_GOTPCRELX relocs is currently suppressed.
be6651
 
be6651
 .*: +file format .*
be6651
 
be6651
diff -rup binutils.orig/ld/testsuite/ld-x86-64/pr19609-1i.d binutils-2.27/ld/testsuite/ld-x86-64/pr19609-1i.d
be6651
--- binutils.orig/ld/testsuite/ld-x86-64/pr19609-1i.d	2017-10-25 12:52:21.029278274 +0100
be6651
+++ binutils-2.27/ld/testsuite/ld-x86-64/pr19609-1i.d	2017-10-25 15:12:35.551099013 +0100
be6651
@@ -2,6 +2,8 @@
be6651
 #as: --x32 -mrelax-relocations=yes
be6651
 #ld: -pie -melf32_x86_64 --no-dynamic-linker
be6651
 #objdump: -dw
be6651
+#xfail: *-*-*
be6651
+# XFAILed because generation of the R_X86_64_REX_GOTPCRELX and R_X86_64_GOTPCRELX relocs is currently suppressed.
be6651
 
be6651
 .*: +file format .*
be6651
 
be6651
diff -rup binutils.orig/ld/testsuite/ld-x86-64/pr19609-1k.d binutils-2.27/ld/testsuite/ld-x86-64/pr19609-1k.d
be6651
--- binutils.orig/ld/testsuite/ld-x86-64/pr19609-1k.d	2017-10-25 12:52:21.029278274 +0100
be6651
+++ binutils-2.27/ld/testsuite/ld-x86-64/pr19609-1k.d	2017-10-25 15:12:35.551099013 +0100
be6651
@@ -2,6 +2,8 @@
be6651
 #as: --64 -mrelax-relocations=yes
be6651
 #ld: -pie -E -Bsymbolic-functions -melf_x86_64 --no-dynamic-linker
be6651
 #objdump: -dw
be6651
+#xfail: *-*-*
be6651
+# XFAILed because generation of the R_X86_64_REX_GOTPCRELX and R_X86_64_GOTPCRELX relocs is currently suppressed.
be6651
 
be6651
 .*: +file format .*
be6651
 
be6651
diff -rup binutils.orig/ld/testsuite/ld-x86-64/pr19609-2a.d binutils-2.27/ld/testsuite/ld-x86-64/pr19609-2a.d
be6651
--- binutils.orig/ld/testsuite/ld-x86-64/pr19609-2a.d	2017-10-25 12:52:21.029278274 +0100
be6651
+++ binutils-2.27/ld/testsuite/ld-x86-64/pr19609-2a.d	2017-10-25 15:12:35.551099013 +0100
be6651
@@ -2,3 +2,5 @@
be6651
 #as: --64 -mrelax-relocations=yes
be6651
 #ld: -melf_x86_64 -Ttext=0x70000000 -Tdata=0xa0000000
be6651
 #error: .*relocation truncated to fit: R_X86_64_32S .*
be6651
+#xfail: *-*-*
be6651
+# XFAILed because generation of the R_X86_64_REX_GOTPCRELX and R_X86_64_GOTPCRELX relocs is currently suppressed.
be6651
diff -rup binutils.orig/ld/testsuite/ld-x86-64/pr19609-2b.d binutils-2.27/ld/testsuite/ld-x86-64/pr19609-2b.d
be6651
--- binutils.orig/ld/testsuite/ld-x86-64/pr19609-2b.d	2017-10-25 12:52:21.029278274 +0100
be6651
+++ binutils-2.27/ld/testsuite/ld-x86-64/pr19609-2b.d	2017-10-25 15:12:35.551099013 +0100
be6651
@@ -2,3 +2,5 @@
be6651
 #as: --x32 -mrelax-relocations=yes
be6651
 #ld: -melf32_x86_64 -Ttext=0x70000000 -Tdata=0xa0000000
be6651
 #error: .*relocation truncated to fit: R_X86_64_32S .*
be6651
+#xfail: *-*-*
be6651
+# XFAILed because generation of the R_X86_64_REX_GOTPCRELX and R_X86_64_GOTPCRELX relocs is currently suppressed.
be6651
diff -rup binutils.orig/ld/testsuite/ld-x86-64/pr19609-3a.d binutils-2.27/ld/testsuite/ld-x86-64/pr19609-3a.d
be6651
--- binutils.orig/ld/testsuite/ld-x86-64/pr19609-3a.d	2017-10-25 12:52:21.030278263 +0100
be6651
+++ binutils-2.27/ld/testsuite/ld-x86-64/pr19609-3a.d	2017-10-25 15:12:35.551099013 +0100
be6651
@@ -2,6 +2,8 @@
be6651
 #as: --64 -mrelax-relocations=yes
be6651
 #ld: -melf_x86_64 -Ttext=0x70000000 -Tdata=0xa0000000
be6651
 #objdump: -dw
be6651
+#xfail: *-*-*
be6651
+# XFAILed because generation of the R_X86_64_REX_GOTPCRELX and R_X86_64_GOTPCRELX relocs is currently suppressed.
be6651
 
be6651
 .*: +file format .*
be6651
 
be6651
diff -rup binutils.orig/ld/testsuite/ld-x86-64/pr19609-3b.d binutils-2.27/ld/testsuite/ld-x86-64/pr19609-3b.d
be6651
--- binutils.orig/ld/testsuite/ld-x86-64/pr19609-3b.d	2017-10-25 12:52:21.030278263 +0100
be6651
+++ binutils-2.27/ld/testsuite/ld-x86-64/pr19609-3b.d	2017-10-25 15:12:35.552099002 +0100
be6651
@@ -2,6 +2,8 @@
be6651
 #as: --x32 -mrelax-relocations=yes
be6651
 #ld: -melf32_x86_64 -Ttext=0x70000000 -Tdata=0xa0000000
be6651
 #objdump: -dw
be6651
+#xfail: *-*-*
be6651
+# XFAILed because generation of the R_X86_64_REX_GOTPCRELX and R_X86_64_GOTPCRELX relocs is currently suppressed.
be6651
 
be6651
 .*: +file format .*
be6651
 
be6651
diff -rup binutils.orig/ld/testsuite/ld-x86-64/pr19609-4a.d binutils-2.27/ld/testsuite/ld-x86-64/pr19609-4a.d
be6651
--- binutils.orig/ld/testsuite/ld-x86-64/pr19609-4a.d	2017-10-25 12:52:21.030278263 +0100
be6651
+++ binutils-2.27/ld/testsuite/ld-x86-64/pr19609-4a.d	2017-10-25 15:12:35.552099002 +0100
be6651
@@ -3,3 +3,5 @@
be6651
 #ld: -melf_x86_64 -Ttext=0x70000000 -Tdata=0xa0000000
be6651
 #error: .*relocation truncated to fit: R_X86_64_32S .*
be6651
 #error: .*relocation truncated to fit: R_X86_64_32S .*
be6651
+#xfail: *-*-*
be6651
+# XFAILed because generation of the R_X86_64_REX_GOTPCRELX and R_X86_64_GOTPCRELX relocs is currently suppressed.
be6651
diff -rup binutils.orig/ld/testsuite/ld-x86-64/pr19609-4b.d binutils-2.27/ld/testsuite/ld-x86-64/pr19609-4b.d
be6651
--- binutils.orig/ld/testsuite/ld-x86-64/pr19609-4b.d	2017-10-25 12:52:21.030278263 +0100
be6651
+++ binutils-2.27/ld/testsuite/ld-x86-64/pr19609-4b.d	2017-10-25 15:12:35.552099002 +0100
be6651
@@ -2,6 +2,8 @@
be6651
 #as: --x32 -mrelax-relocations=yes
be6651
 #ld: -melf32_x86_64 -Ttext=0x70000000 -Tdata=0xa0000000
be6651
 #objdump: -dw
be6651
+#xfail: *-*-*
be6651
+# XFAILed because generation of the R_X86_64_REX_GOTPCRELX and R_X86_64_GOTPCRELX relocs is currently suppressed.
be6651
 
be6651
 .*: +file format .*
be6651
 
be6651
diff -rup binutils.orig/ld/testsuite/ld-x86-64/pr19609-4c.d binutils-2.27/ld/testsuite/ld-x86-64/pr19609-4c.d
be6651
--- binutils.orig/ld/testsuite/ld-x86-64/pr19609-4c.d	2017-10-25 12:52:21.030278263 +0100
be6651
+++ binutils-2.27/ld/testsuite/ld-x86-64/pr19609-4c.d	2017-10-25 15:12:35.552099002 +0100
be6651
@@ -3,3 +3,5 @@
be6651
 #ld: -melf_x86_64 -Ttext=0x70000000 -Tdata=0xa0000000
be6651
 #error: .*relocation truncated to fit: R_X86_64_32S .*
be6651
 #error: .*relocation truncated to fit: R_X86_64_32S .*
be6651
+#xfail: *-*-*
be6651
+# XFAILed because generation of the R_X86_64_REX_GOTPCRELX and R_X86_64_GOTPCRELX relocs is currently suppressed.
be6651
diff -rup binutils.orig/ld/testsuite/ld-x86-64/pr19609-4d.d binutils-2.27/ld/testsuite/ld-x86-64/pr19609-4d.d
be6651
--- binutils.orig/ld/testsuite/ld-x86-64/pr19609-4d.d	2017-10-25 12:52:21.030278263 +0100
be6651
+++ binutils-2.27/ld/testsuite/ld-x86-64/pr19609-4d.d	2017-10-25 15:12:35.552099002 +0100
be6651
@@ -2,6 +2,8 @@
be6651
 #as: --x32 -mrelax-relocations=yes
be6651
 #ld: -melf32_x86_64 -Ttext=0x70000000 -Tdata=0xa0000000
be6651
 #objdump: -dw
be6651
+#xfail: *-*-*
be6651
+# XFAILed because generation of the R_X86_64_REX_GOTPCRELX and R_X86_64_GOTPCRELX relocs is currently suppressed.
be6651
 
be6651
 .*: +file format .*
be6651
 
be6651
diff -rup binutils.orig/ld/testsuite/ld-x86-64/pr19609-5a.d binutils-2.27/ld/testsuite/ld-x86-64/pr19609-5a.d
be6651
--- binutils.orig/ld/testsuite/ld-x86-64/pr19609-5a.d	2017-10-25 12:52:21.030278263 +0100
be6651
+++ binutils-2.27/ld/testsuite/ld-x86-64/pr19609-5a.d	2017-10-25 15:12:35.552099002 +0100
be6651
@@ -2,6 +2,8 @@
be6651
 #as: --64 -mrelax-relocations=yes
be6651
 #ld: -melf_x86_64
be6651
 #objdump: -dw
be6651
+#xfail: *-*-*
be6651
+# XFAILed because generation of the R_X86_64_REX_GOTPCRELX and R_X86_64_GOTPCRELX relocs is currently suppressed.
be6651
 
be6651
 .*: +file format .*
be6651
 
be6651
diff -rup binutils.orig/ld/testsuite/ld-x86-64/pr19609-5d.d binutils-2.27/ld/testsuite/ld-x86-64/pr19609-5d.d
be6651
--- binutils.orig/ld/testsuite/ld-x86-64/pr19609-5d.d	2017-10-25 12:52:21.030278263 +0100
be6651
+++ binutils-2.27/ld/testsuite/ld-x86-64/pr19609-5d.d	2017-10-25 15:12:35.552099002 +0100
be6651
@@ -2,3 +2,5 @@
be6651
 #as: --64 -mrelax-relocations=yes
be6651
 #ld: -melf_x86_64 -Ttext=0x80000000
be6651
 #error: .*relocation truncated to fit: R_X86_64_PC32 .*
be6651
+#xfail: *-*-*
be6651
+# XFAILed because generation of the R_X86_64_REX_GOTPCRELX and R_X86_64_GOTPCRELX relocs is currently suppressed.
be6651
diff -rup binutils.orig/ld/testsuite/ld-x86-64/pr19609-6a.d binutils-2.27/ld/testsuite/ld-x86-64/pr19609-6a.d
be6651
--- binutils.orig/ld/testsuite/ld-x86-64/pr19609-6a.d	2017-10-25 12:52:21.031278251 +0100
be6651
+++ binutils-2.27/ld/testsuite/ld-x86-64/pr19609-6a.d	2017-10-25 15:12:35.552099002 +0100
be6651
@@ -2,3 +2,5 @@
be6651
 #as: --64 -mrelax-relocations=yes
be6651
 #ld: -melf_x86_64 --defsym foobar=0x80000000
be6651
 #error: .*relocation truncated to fit: R_X86_64_32S .*
be6651
+#xfail: *-*-*
be6651
+# XFAILed because generation of the R_X86_64_REX_GOTPCRELX and R_X86_64_GOTPCRELX relocs is currently suppressed.
be6651
diff -rup binutils.orig/ld/testsuite/ld-x86-64/pr19609-6c.d binutils-2.27/ld/testsuite/ld-x86-64/pr19609-6c.d
be6651
--- binutils.orig/ld/testsuite/ld-x86-64/pr19609-6c.d	2017-10-25 12:52:21.031278251 +0100
be6651
+++ binutils-2.27/ld/testsuite/ld-x86-64/pr19609-6c.d	2017-10-25 15:12:35.552099002 +0100
be6651
@@ -2,6 +2,8 @@
be6651
 #as: --64 -mrelax-relocations=yes
be6651
 #ld: -melf_x86_64 --defsym foobar=0x70000000
be6651
 #objdump: -dw
be6651
+#xfail: *-*-*
be6651
+# XFAILed because generation of the R_X86_64_REX_GOTPCRELX and R_X86_64_GOTPCRELX relocs is currently suppressed.
be6651
 
be6651
 .*: +file format .*
be6651
 
be6651
diff -rup binutils.orig/ld/testsuite/ld-x86-64/pr19609-6d.d binutils-2.27/ld/testsuite/ld-x86-64/pr19609-6d.d
be6651
--- binutils.orig/ld/testsuite/ld-x86-64/pr19609-6d.d	2017-10-25 12:52:21.031278251 +0100
be6651
+++ binutils-2.27/ld/testsuite/ld-x86-64/pr19609-6d.d	2017-10-25 15:12:35.552099002 +0100
be6651
@@ -2,6 +2,8 @@
be6651
 #as: --x32 -mrelax-relocations=yes
be6651
 #ld: -melf32_x86_64 --defsym foobar=0x80000000
be6651
 #objdump: -dw
be6651
+#xfail: *-*-*
be6651
+# XFAILed because generation of the R_X86_64_REX_GOTPCRELX and R_X86_64_GOTPCRELX relocs is currently suppressed.
be6651
 
be6651
 .*: +file format .*
be6651
 
be6651
diff -rup binutils.orig/ld/testsuite/ld-x86-64/pr19609-7a.d binutils-2.27/ld/testsuite/ld-x86-64/pr19609-7a.d
be6651
--- binutils.orig/ld/testsuite/ld-x86-64/pr19609-7a.d	2017-10-25 12:52:21.031278251 +0100
be6651
+++ binutils-2.27/ld/testsuite/ld-x86-64/pr19609-7a.d	2017-10-25 15:12:35.552099002 +0100
be6651
@@ -2,3 +2,5 @@
be6651
 #as: --64 -mrelax-relocations=yes
be6651
 #ld: -melf_x86_64 -Ttext=0x80000000
be6651
 #error: .*relocation truncated to fit: R_X86_64_PC32 .*
be6651
+#xfail: *-*-*
be6651
+# XFAILed because generation of the R_X86_64_REX_GOTPCRELX and R_X86_64_GOTPCRELX relocs is currently suppressed.
be6651
diff -rup binutils.orig/ld/testsuite/ld-x86-64/pr19609-7c.d binutils-2.27/ld/testsuite/ld-x86-64/pr19609-7c.d
be6651
--- binutils.orig/ld/testsuite/ld-x86-64/pr19609-7c.d	2017-10-25 12:52:21.031278251 +0100
be6651
+++ binutils-2.27/ld/testsuite/ld-x86-64/pr19609-7c.d	2017-10-25 15:12:35.552099002 +0100
be6651
@@ -2,3 +2,5 @@
be6651
 #as: --x32 -mrelax-relocations=yes
be6651
 #ld: -melf32_x86_64 -Ttext=0x80000000
be6651
 #error: .*relocation truncated to fit: R_X86_64_PC32 .*
be6651
+#xfail: *-*-*
be6651
+# XFAILed because generation of the R_X86_64_REX_GOTPCRELX and R_X86_64_GOTPCRELX relocs is currently suppressed.
be6651
diff -rup binutils.orig/ld/testsuite/ld-x86-64/tls.exp binutils-2.27/ld/testsuite/ld-x86-64/tls.exp
be6651
--- binutils.orig/ld/testsuite/ld-x86-64/tls.exp	2017-10-25 12:52:21.036278193 +0100
be6651
+++ binutils-2.27/ld/testsuite/ld-x86-64/tls.exp	2017-10-25 15:12:35.552099002 +0100
be6651
@@ -69,42 +69,6 @@ run_cc_link_tests [list \
be6651
 
be6651
 run_ld_link_exec_tests [] [list \
be6651
     [list \
be6651
-	"TLS GD/LD -> LE transition without PLT (dynamic)" \
be6651
-	"tmpdir/tls-def1.o tmpdir/tls-main1.o tmpdir/tls-gd1.o \
be6651
-	 tmpdir/tls-ld1.o" \
be6651
-	"" \
be6651
-	{ dummy.s } \
be6651
-	"tls-1a" \
be6651
-	"pass.out" \
be6651
-    ] \
be6651
-    [list \
be6651
-	"TLS GD/LD -> LE transition without PLT (PIE)" \
be6651
-	"-pie tmpdir/tls-def1.o tmpdir/tls-main1.o tmpdir/tls-gd1.o \
be6651
-	 tmpdir/tls-ld1.o" \
be6651
-	"" \
be6651
-	{ dummy.s } \
be6651
-	"tls-1b" \
be6651
-	"pass.out" \
be6651
-    ] \
be6651
-    [list \
be6651
-	"TLS GD/LD -> LE transition without PLT (static)" \
be6651
-	"-static tmpdir/tls-def1.o tmpdir/tls-main1.o tmpdir/tls-gd1.o \
be6651
-	 tmpdir/tls-ld1.o" \
be6651
-	"" \
be6651
-	{ dummy.s } \
be6651
-	"tls-1c" \
be6651
-	"pass.out" \
be6651
-    ] \
be6651
-    [list \
be6651
-	"TLS GD/LD -> IE transition without PLT" \
be6651
-	"tmpdir/tls-main1.o tmpdir/tls-gd1.o tmpdir/tls-ld1.o \
be6651
-	 tmpdir/libtls-1a.so -R tmpdir" \
be6651
-	"" \
be6651
-	{ dummy.s } \
be6651
-	"tls-1d" \
be6651
-	"pass.out" \
be6651
-    ] \
be6651
-    [list \
be6651
 	"TLS without PLT (1)" \
be6651
 	"tmpdir/tls-main1.o \
be6651
 	 tmpdir/libtls-1a.so tmpdir/libtls-1b.so -R tmpdir" \
be6651
diff -rup binutils.orig/ld/testsuite/ld-x86-64/tlspie2a.d binutils-2.27/ld/testsuite/ld-x86-64/tlspie2a.d
be6651
--- binutils.orig/ld/testsuite/ld-x86-64/tlspie2a.d	2017-10-25 12:52:21.039278158 +0100
be6651
+++ binutils-2.27/ld/testsuite/ld-x86-64/tlspie2a.d	2017-10-25 15:12:35.552099002 +0100
be6651
@@ -2,5 +2,7 @@
be6651
 #as: --64 -mrelax-relocations=yes
be6651
 #ld: -melf_x86_64 -pie
be6651
 #readelf: -r
be6651
+#xfail: *-*-*
be6651
+# XFAILed because generation of the R_X86_64_REX_GOTPCRELX and R_X86_64_GOTPCRELX relocs is currently suppressed.
be6651
 
be6651
 There are no relocations in this file.
be6651
diff -rup binutils.orig/ld/testsuite/ld-x86-64/tlspie2b.d binutils-2.27/ld/testsuite/ld-x86-64/tlspie2b.d
be6651
--- binutils.orig/ld/testsuite/ld-x86-64/tlspie2b.d	2017-10-25 12:52:21.039278158 +0100
be6651
+++ binutils-2.27/ld/testsuite/ld-x86-64/tlspie2b.d	2017-10-25 15:12:35.552099002 +0100
be6651
@@ -2,6 +2,8 @@
be6651
 #as: --64 -mrelax-relocations=yes
be6651
 #ld: -melf_x86_64 -pie
be6651
 #objdump: -dwr
be6651
+#xfail: *-*-*
be6651
+# XFAILed because generation of the R_X86_64_REX_GOTPCRELX and R_X86_64_GOTPCRELX relocs is currently suppressed.
be6651
 
be6651
 .*: +file format .*
be6651
 
be6651
diff -rup binutils.orig/ld/testsuite/ld-x86-64/tlspie2c.d binutils-2.27/ld/testsuite/ld-x86-64/tlspie2c.d
be6651
--- binutils.orig/ld/testsuite/ld-x86-64/tlspie2c.d	2017-10-25 12:52:21.039278158 +0100
be6651
+++ binutils-2.27/ld/testsuite/ld-x86-64/tlspie2c.d	2017-10-25 15:12:35.553098990 +0100
be6651
@@ -2,6 +2,8 @@
be6651
 #as: --64 -mrelax-relocations=yes
be6651
 #ld: -melf_x86_64 -pie -z call-nop=suffix-nop
be6651
 #objdump: -dwr
be6651
+#xfail: *-*-*
be6651
+# XFAILed because generation of the R_X86_64_REX_GOTPCRELX and R_X86_64_GOTPCRELX relocs is currently suppressed.
be6651
 
be6651
 .*: +file format .*
be6651
 
be6651
diff -rup binutils.orig/ld/testsuite/ld-x86-64/x86-64.exp binutils-2.27/ld/testsuite/ld-x86-64/x86-64.exp
be6651
--- binutils.orig/ld/testsuite/ld-x86-64/x86-64.exp	2017-10-25 12:52:21.040278147 +0100
be6651
+++ binutils-2.27/ld/testsuite/ld-x86-64/x86-64.exp	2017-10-25 15:12:35.553098990 +0100
be6651
@@ -55,13 +55,6 @@ set x86_64tests {
be6651
      {{readelf -WSsrl tlspic.rd} {objdump -drj.text\ -Mintel64 tlspic.dd}
be6651
       {objdump -sj.got tlspic.sd} {objdump -sj.tdata tlspic.td}}
be6651
       "libtlspic.so"}
be6651
-    {"TLS -fpic -shared transitions with r15 as GOT base"
be6651
-     "-shared -melf_x86_64 --no-ld-generated-unwind-info" ""
be6651
-     "--64 -mrelax-relocations=yes"
be6651
-     {tlspic3.s tlspic2.s}
be6651
-     {{readelf -WSsrl tlspic2.rd} {objdump -drj.text\ -Mintel64 tlspic2.dd}
be6651
-      {objdump -sj.got tlspic2.sd} {objdump -sj.tdata tlspic2.td}}
be6651
-      "libtlspic2.so"}
be6651
     {"TLS descriptor -fpic -shared transitions"
be6651
      "-shared -melf_x86_64 --no-ld-generated-unwind-info" ""
be6651
      "--64" {tlsdesc.s tlspic2.s}
be6651
@@ -76,12 +69,6 @@ set x86_64tests {
be6651
      {{readelf -WSsrl tlsbin.rd} {objdump -drj.text tlsbin.dd}
be6651
       {objdump -sj.got tlsbin.sd} {objdump -sj.tdata tlsbin.td}}
be6651
       "tlsbin"}
be6651
-    {"TLS -fpic and -fno-pic exec transitions without PLT"
be6651
-     "-melf_x86_64 tmpdir/libtlslib.so --no-ld-generated-unwind-info" ""
be6651
-     "-mrelax-relocations=yes --64" {tlsbinpic2.s tlsbin.s}
be6651
-     {{readelf -WSsrl tlsbin2.rd} {objdump -drj.text tlsbin2.dd}
be6651
-      {objdump -sj.got tlsbin2.sd} {objdump -sj.tdata tlsbin2.td}}
be6651
-      "tlsbin2"}
be6651
     {"TLS descriptor -fpic and -fno-pic exec transitions"
be6651
      "-melf_x86_64 tmpdir/libtlslib.so --no-ld-generated-unwind-info" ""
be6651
      "--64" {tlsbindesc.s tlsbin.s}
be6651
@@ -128,19 +115,11 @@ set x86_64tests {
be6651
     {"TLS GD->IE transition" "-melf_x86_64 tmpdir/libtlsgd5.so" ""
be6651
      "--64" {tlsgd5a.s}
be6651
      {{objdump -dwr tlsgd5.dd}} "tlsgd5a"}
be6651
-    {"TLS GD->IE transition without PLT"
be6651
-     "-melf_x86_64 tmpdir/libtlsgd5.so" ""
be6651
-     "-mrelax-relocations=yes --64" {tlsgd5c.s}
be6651
-     {{objdump -dwr tlsgd5.dd}} "tlsgd5b"}
be6651
     {"Helper TLS X32 GD->IE transition DSO" "-shared -melf32_x86_64" ""
be6651
      "--x32" {tlsgd6b.s} {} "libtlsgd6.so"}
be6651
     {"TLS X32 GD->IE transition" "-melf32_x86_64 tmpdir/libtlsgd6.so" ""
be6651
      "--x32" {tlsgd6a.s}
be6651
      {{objdump -dwr tlsgd6.dd}} "tlsgd6a"}
be6651
-    {"TLS X32 GD->IE transition without PLT"
be6651
-     "-melf32_x86_64 tmpdir/libtlsgd6.so" ""
be6651
-     "-mrelax-relocations=yes --x32" {tlsgd6c.s}
be6651
-     {{objdump -dwr tlsgd6.dd}} "tlsgd6b"}
be6651
     {"TLS X32 LD->LE transition" "-melf32_x86_64" ""
be6651
      "--x32" {tlsld2.s}
be6651
      {{objdump -dwr tlsld2.dd}} "tlsld2"}
be6651
@@ -154,15 +133,6 @@ set x86_64tests {
be6651
      "-melf_x86_64" ""
be6651
      "--64" {tlsld4.s}
be6651
      {{objdump -dwr tlsld4.dd}} "tlsld4"}
be6651
-    {"TLS LD->LE transition without PLT"
be6651
-     "-melf_x86_64" ""
be6651
-     "--64 -mrelax-relocations=yes"
be6651
-     {tlsld5.s}
be6651
-     {{objdump -dwr tlsld5.dd}} "tlsld5"}
be6651
-    {"TLS X32 LD->LE transition without PLT" "-melf32_x86_64" ""
be6651
-     "--x32 -mrelax-relocations=yes"
be6651
-     {tlsld6.s}
be6651
-     {{objdump -dwr tlsld6.dd}} "tlsld6"}
be6651
     {"TLS -mcmodel=large GD->IE transition" "-melf_x86_64 tmpdir/libtlsgd5.so" ""
be6651
      "--64" {tlsgd8.s}
be6651
      {{objdump -dwrj.text tlsgd8.dd}} "tlsgd8"}
be6651
@@ -620,7 +590,7 @@ if { [isnative] && [which $CC] != 0 } {
be6651
 	    "" \
be6651
 	    "-fPIC -Wa,-mrelax-relocations=yes" \
be6651
 	    { plt-main1.c } \
be6651
-	    {{readelf {-Wr} plt-main1.rd}} \
be6651
+	    {} \
be6651
 	    "libplt-main1.a" \
be6651
 	] \
be6651
 	[list \
be6651
@@ -644,7 +614,7 @@ if { [isnative] && [which $CC] != 0 } {
be6651
 	    "" \
be6651
 	    "-fPIC -Wa,-mrelax-relocations=yes $PLT_CFLAGS" \
be6651
 	    { plt-main4.c } \
be6651
-	    {{readelf {-Wr} plt-main4.rd}} \
be6651
+	    {} \
be6651
 	    "libplt-main4.a" \
be6651
 	] \
be6651
 	[list \
be6651
@@ -799,14 +769,6 @@ if { [isnative] && [which $CC] != 0 } {
be6651
 	    { gotpcrel1a.S gotpcrel1b.c gotpcrel1c.c } \
be6651
 	] \
be6651
 	[list \
be6651
-	    "Build gotpcrel1" \
be6651
-	    "-Wl,--as-needed tmpdir/gotpcrel1a.o tmpdir/gotpcrel1b.o tmpdir/gotpcrel1c.o tmpdir/gotpcrel1d.so" \
be6651
-	    { dummy.s } \
be6651
-	    "" \
be6651
-	    {{objdump {-dw} gotpcrel1.dd}} \
be6651
-	    "gotpcrel1" \
be6651
-	] \
be6651
-	[list \
be6651
 	    "Build pr19319.so" \
be6651
 	    "-shared" \
be6651
 	    "" \
43c6b8
--- binutils.orig/ld/testsuite/ld-x86-64/x86-64.exp	2019-04-15 13:13:09.203928459 +0100
43c6b8
+++ binutils-2.27/ld/testsuite/ld-x86-64/x86-64.exp	2019-04-15 13:15:31.960858042 +0100
43c6b8
@@ -623,7 +623,7 @@ if { [isnative] && [which $CC] != 0 } {
43c6b8
 	     tmpdir/plt-main4.o tmpdir/libplt-lib.so" \
43c6b8
 	    "" \
43c6b8
 	    { plt-main5.c } \
43c6b8
-	    {{readelf {-Wr} plt-main.rd}} \
43c6b8
+	    {} \
43c6b8
 	    "plt-main" \
43c6b8
 	] \
43c6b8
 	[list \
43c6b8
@@ -632,7 +632,7 @@ if { [isnative] && [which $CC] != 0 } {
43c6b8
 	     tmpdir/plt-main4.o tmpdir/libplt-lib.so -pie" \
43c6b8
 	    "-fPIC" \
43c6b8
 	    { plt-main5.c } \
43c6b8
-	    {{readelf {-Wr} plt-main.rd}} \
43c6b8
+	    {} \
43c6b8
 	    "plt-main" \
43c6b8
 	] \
43c6b8
 	[list \
43c6b8
@@ -866,7 +866,7 @@ if { [isnative] && [which $CC] != 0 } {
43c6b8
 		 tmpdir/plt-main4.o tmpdir/libplt-lib.so -z bndplt" \
43c6b8
 		"" \
43c6b8
 		{ plt-main5.c } \
43c6b8
-		{{objdump {-drw} plt-main-bnd.dd}} \
43c6b8
+		{} \
43c6b8
 		"plt-main-bnd" \
43c6b8
 	    ] \
43c6b8
 	    [list \
43c6b8
@@ -875,7 +875,7 @@ if { [isnative] && [which $CC] != 0 } {
43c6b8
 		 tmpdir/plt-main4.o tmpdir/libplt-lib.so -z bndplt -pie" \
43c6b8
 		"-fPIC" \
43c6b8
 		{ plt-main5.c } \
43c6b8
-		{{objdump {-drw} plt-main-bnd.dd}} \
43c6b8
+		{} \
43c6b8
 		"plt-main-pie-bnd" \
43c6b8
 	    ] \
43c6b8
 	]
43c6b8
@@ -916,5 +916,5 @@ if { ![istarget "x86_64-*-linux*"]} {
43c6b8
 
43c6b8
 # Linux only tests
43c6b8
 run_dump_test "pr17618"
43c6b8
-run_dump_test "pltgot-1"
43c6b8
-run_dump_test "pltgot-2"
43c6b8
+# run_dump_test "pltgot-1"
43c6b8
+# run_dump_test "pltgot-2"