8969267
diff -rupN --no-dereference binutils-2.38/bfd/elfxx-x86.c binutils-2.38-new/bfd/elfxx-x86.c
8969267
--- binutils-2.38/bfd/elfxx-x86.c	2022-02-08 10:00:25.000000000 +0100
790e0da
+++ binutils-2.38-new/bfd/elfxx-x86.c	2023-03-07 07:55:49.789444199 +0100
8969267
@@ -105,7 +105,7 @@ elf_x86_allocate_dynrelocs (struct elf_l
8969267
   plt_entry_size = htab->plt.plt_entry_size;
8969267
 
8969267
   resolved_to_zero = UNDEFINED_WEAK_RESOLVED_TO_ZERO (info, eh);
8969267
-
8969267
+#if 0
8969267
   /* We can't use the GOT PLT if pointer equality is needed since
8969267
      finish_dynamic_symbol won't clear symbol value and the dynamic
8969267
      linker won't update the GOT slot.  We will get into an infinite
8969267
@@ -123,7 +123,7 @@ elf_x86_allocate_dynrelocs (struct elf_l
8969267
       /* Use the GOT PLT.  */
8969267
       eh->plt_got.refcount = 1;
8969267
     }
8969267
-
8969267
+#endif
8969267
   /* Since STT_GNU_IFUNC symbol must go through PLT, we handle it
8969267
      here if it is defined and referenced in a non-shared object.  */
8969267
   if (h->type == STT_GNU_IFUNC
8969267
diff -rupN --no-dereference binutils-2.38/ld/testsuite/ld-i386/pltgot-1.d binutils-2.38-new/ld/testsuite/ld-i386/pltgot-1.d
8969267
--- binutils-2.38/ld/testsuite/ld-i386/pltgot-1.d	2022-01-22 13:14:09.000000000 +0100
790e0da
+++ binutils-2.38-new/ld/testsuite/ld-i386/pltgot-1.d	2023-03-07 07:55:49.789444199 +0100
f23ce7c
@@ -2,6 +2,7 @@
f23ce7c
 #readelf: -S --wide
f23ce7c
 #as: --32
f23ce7c
 
f23ce7c
+#pass
f23ce7c
 #...
f23ce7c
  +\[ *[0-9]+\] \.plt +PROGBITS +[0-9a-f]+ +[0-9a-f]+ +0+10 +.*
f23ce7c
 #...
8969267
diff -rupN --no-dereference binutils-2.38/ld/testsuite/ld-i386/pltgot-2.d binutils-2.38-new/ld/testsuite/ld-i386/pltgot-2.d
8969267
--- binutils-2.38/ld/testsuite/ld-i386/pltgot-2.d	2022-01-22 13:14:09.000000000 +0100
790e0da
+++ binutils-2.38-new/ld/testsuite/ld-i386/pltgot-2.d	2023-03-07 07:55:49.789444199 +0100
f23ce7c
@@ -3,7 +3,6 @@
f23ce7c
 #readelf: -d --wide
f23ce7c
 #as: --32
f23ce7c
 
f23ce7c
-#failif
f23ce7c
 #...
f23ce7c
  +0x[0-9a-f]+ +\(PLTREL.*
f23ce7c
 #...
8969267
diff -rupN --no-dereference binutils-2.38/ld/testsuite/ld-i386/pr19636-2d.d binutils-2.38-new/ld/testsuite/ld-i386/pr19636-2d.d
8969267
--- binutils-2.38/ld/testsuite/ld-i386/pr19636-2d.d	2022-01-22 13:14:09.000000000 +0100
790e0da
+++ binutils-2.38-new/ld/testsuite/ld-i386/pr19636-2d.d	2023-03-07 07:55:49.790444200 +0100
8969267
@@ -8,7 +8,7 @@ Relocation section '\.rel\.dyn' at offse
f23ce7c
 [0-9a-f]+ +[0-9a-f]+ +R_386_32 +0+ +func
f23ce7c
 [0-9a-f]+ +[0-9a-f]+ +R_386_PC32 +0+ +func
f23ce7c
 [0-9a-f]+ +[0-9a-f]+ +R_386_GLOB_DAT +0+ +func
f23ce7c
-
f23ce7c
+#...
f23ce7c
 Symbol table '\.dynsym' contains [0-9]+ entries:
f23ce7c
  +Num: +Value +Size Type +Bind +Vis +Ndx Name
f23ce7c
 #...
8969267
diff -rupN --no-dereference binutils-2.38/ld/testsuite/ld-i386/pr19636-2e.d binutils-2.38-new/ld/testsuite/ld-i386/pr19636-2e.d
8969267
--- binutils-2.38/ld/testsuite/ld-i386/pr19636-2e.d	2022-01-22 13:14:09.000000000 +0100
790e0da
+++ binutils-2.38-new/ld/testsuite/ld-i386/pr19636-2e.d	2023-03-07 07:55:49.790444200 +0100
8969267
@@ -8,7 +8,7 @@ Relocation section '\.rel\.dyn' at offse
f23ce7c
 [0-9a-f]+ +[0-9a-f]+ +R_386_32 +0+ +func
f23ce7c
 [0-9a-f]+ +[0-9a-f]+ +R_386_PC32 +0+ +func
f23ce7c
 [0-9a-f]+ +[0-9a-f]+ +R_386_GLOB_DAT +0+ +func
f23ce7c
-
f23ce7c
+#...
f23ce7c
 Symbol table '\.dynsym' contains [0-9]+ entries:
f23ce7c
  +Num: +Value +Size Type +Bind +Vis +Ndx Name
f23ce7c
 #...
8969267
diff -rupN --no-dereference binutils-2.38/ld/testsuite/ld-i386/pr20830.d binutils-2.38-new/ld/testsuite/ld-i386/pr20830.d
8969267
--- binutils-2.38/ld/testsuite/ld-i386/pr20830.d	2022-02-07 10:09:33.000000000 +0100
790e0da
+++ binutils-2.38-new/ld/testsuite/ld-i386/pr20830.d	2023-03-07 07:55:49.790444200 +0100
8969267
@@ -19,7 +19,7 @@ Contents of the .eh_frame section:
8969267
   DW_CFA_offset: r8 \(eip\) at cfa-4
8969267
   DW_CFA_nop
8969267
   DW_CFA_nop
8969267
-
8969267
+#pass
8969267
 0+18 00000010 0000001c FDE cie=00000000 pc=00000128..00000133
8969267
   DW_CFA_nop
8969267
   DW_CFA_nop
8969267
diff -rupN --no-dereference binutils-2.38/ld/testsuite/ld-x86-64/pltgot-1.d binutils-2.38-new/ld/testsuite/ld-x86-64/pltgot-1.d
8969267
--- binutils-2.38/ld/testsuite/ld-x86-64/pltgot-1.d	2022-01-22 13:14:09.000000000 +0100
790e0da
+++ binutils-2.38-new/ld/testsuite/ld-x86-64/pltgot-1.d	2023-03-07 07:55:49.790444200 +0100
f23ce7c
@@ -2,8 +2,4 @@
f23ce7c
 #readelf: -S --wide
f23ce7c
 #as: --64
f23ce7c
 
f23ce7c
-#...
f23ce7c
- +\[ *[0-9]+\] \.plt +PROGBITS +[0-9a-f]+ +[0-9a-f]+ +0+10 +.*
f23ce7c
-#...
f23ce7c
- +\[ *[0-9]+\] \.got\.plt +PROGBITS +[0-9a-f]+ +[0-9a-f]+ +0+18 +.*
f23ce7c
 #pass
8969267
diff -rupN --no-dereference binutils-2.38/ld/testsuite/ld-x86-64/pltgot-2.d binutils-2.38-new/ld/testsuite/ld-x86-64/pltgot-2.d
8969267
--- binutils-2.38/ld/testsuite/ld-x86-64/pltgot-2.d	2022-01-22 13:14:09.000000000 +0100
790e0da
+++ binutils-2.38-new/ld/testsuite/ld-x86-64/pltgot-2.d	2023-03-07 07:55:49.790444200 +0100
f23ce7c
@@ -3,7 +3,6 @@
f23ce7c
 #readelf: -d --wide
f23ce7c
 #as: --64
f23ce7c
 
f23ce7c
-#failif
f23ce7c
 #...
f23ce7c
  +0x[0-9a-f]+ +\(PLTREL.*
f23ce7c
 #...
8969267
diff -rupN --no-dereference binutils-2.38/ld/testsuite/ld-x86-64/plt-main.rd binutils-2.38-new/ld/testsuite/ld-x86-64/plt-main.rd
8969267
--- binutils-2.38/ld/testsuite/ld-x86-64/plt-main.rd	2022-01-22 13:14:09.000000000 +0100
790e0da
+++ binutils-2.38-new/ld/testsuite/ld-x86-64/plt-main.rd	2023-03-07 07:55:49.791444202 +0100
f23ce7c
@@ -1,4 +1,3 @@
f23ce7c
-#failif
f23ce7c
 #...
f23ce7c
 [0-9a-f ]+R_X86_64_JUMP_SLOT +0+ +bar \+ 0
f23ce7c
 #...
8969267
diff -rupN --no-dereference binutils-2.38/ld/testsuite/ld-x86-64/pr20830a.d binutils-2.38-new/ld/testsuite/ld-x86-64/pr20830a.d
8969267
--- binutils-2.38/ld/testsuite/ld-x86-64/pr20830a.d	2022-02-07 10:09:33.000000000 +0100
790e0da
+++ binutils-2.38-new/ld/testsuite/ld-x86-64/pr20830a.d	2023-03-07 07:55:49.791444202 +0100
f23ce7c
@@ -20,6 +20,7 @@ Contents of the .eh_frame section:
f23ce7c
   DW_CFA_offset: r16 \(rip\) at cfa-8
f23ce7c
   DW_CFA_nop
f23ce7c
   DW_CFA_nop
f23ce7c
+#pass
f23ce7c
 
f23ce7c
 0+18 0000000000000014 0000001c FDE cie=00000000 pc=00000000000001c8..00000000000001d4
f23ce7c
   DW_CFA_nop
8969267
diff -rupN --no-dereference binutils-2.38/ld/testsuite/ld-x86-64/pr20830a-now.d binutils-2.38-new/ld/testsuite/ld-x86-64/pr20830a-now.d
8969267
--- binutils-2.38/ld/testsuite/ld-x86-64/pr20830a-now.d	2022-02-07 10:09:33.000000000 +0100
790e0da
+++ binutils-2.38-new/ld/testsuite/ld-x86-64/pr20830a-now.d	2023-03-07 07:55:49.791444202 +0100
f23ce7c
@@ -20,6 +20,7 @@ Contents of the .eh_frame section:
f23ce7c
   DW_CFA_offset: r16 \(rip\) at cfa-8
f23ce7c
   DW_CFA_nop
f23ce7c
   DW_CFA_nop
f23ce7c
+#pass
f23ce7c
 
f23ce7c
 0+18 0000000000000014 0000001c FDE cie=00000000 pc=00000000000001c8..00000000000001d4
f23ce7c
   DW_CFA_nop
8969267
diff -rupN --no-dereference binutils-2.38/ld/testsuite/ld-x86-64/pr20830b.d binutils-2.38-new/ld/testsuite/ld-x86-64/pr20830b.d
8969267
--- binutils-2.38/ld/testsuite/ld-x86-64/pr20830b.d	2022-02-07 10:09:33.000000000 +0100
790e0da
+++ binutils-2.38-new/ld/testsuite/ld-x86-64/pr20830b.d	2023-03-07 07:55:49.791444202 +0100
f23ce7c
@@ -20,7 +20,8 @@ Contents of the .eh_frame section:
f23ce7c
   DW_CFA_offset: r16 \(rip\) at cfa-8
f23ce7c
   DW_CFA_nop
f23ce7c
   DW_CFA_nop
f23ce7c
-
f23ce7c
+#pass
f23ce7c
+ 
f23ce7c
 0+18 0000000000000010 0000001c FDE cie=00000000 pc=0000000000000138..0000000000000144
f23ce7c
   DW_CFA_nop
f23ce7c
   DW_CFA_nop
8969267
diff -rupN --no-dereference binutils-2.38/ld/testsuite/ld-x86-64/pr20830b-now.d binutils-2.38-new/ld/testsuite/ld-x86-64/pr20830b-now.d
8969267
--- binutils-2.38/ld/testsuite/ld-x86-64/pr20830b-now.d	2022-02-07 10:09:33.000000000 +0100
790e0da
+++ binutils-2.38-new/ld/testsuite/ld-x86-64/pr20830b-now.d	2023-03-07 07:55:49.791444202 +0100
f23ce7c
@@ -20,7 +20,8 @@ Contents of the .eh_frame section:
f23ce7c
   DW_CFA_offset: r16 \(rip\) at cfa-8
f23ce7c
   DW_CFA_nop
f23ce7c
   DW_CFA_nop
f23ce7c
-
f23ce7c
+#pass
f23ce7c
+ 
f23ce7c
 0+18 0000000000000010 0000001c FDE cie=00000000 pc=0000000000000138..0000000000000144
f23ce7c
   DW_CFA_nop
f23ce7c
   DW_CFA_nop
8969267
diff -rupN --no-dereference binutils-2.38/ld/testsuite/ld-x86-64/pr21038a.d binutils-2.38-new/ld/testsuite/ld-x86-64/pr21038a.d
8969267
--- binutils-2.38/ld/testsuite/ld-x86-64/pr21038a.d	2022-02-07 10:09:33.000000000 +0100
790e0da
+++ binutils-2.38-new/ld/testsuite/ld-x86-64/pr21038a.d	2023-03-07 07:55:49.792444204 +0100
f23ce7c
@@ -19,7 +19,8 @@ Contents of the .eh_frame section:
f23ce7c
   DW_CFA_offset: r16 \(rip\) at cfa-8
f23ce7c
   DW_CFA_nop
f23ce7c
   DW_CFA_nop
f23ce7c
-
f23ce7c
+#pass
f23ce7c
+  
f23ce7c
 0+18 0000000000000014 0000001c FDE cie=00000000 pc=00000000000001c8..00000000000001d4
f23ce7c
   DW_CFA_nop
f23ce7c
   DW_CFA_nop
8969267
diff -rupN --no-dereference binutils-2.38/ld/testsuite/ld-x86-64/pr21038a-now.d binutils-2.38-new/ld/testsuite/ld-x86-64/pr21038a-now.d
8969267
--- binutils-2.38/ld/testsuite/ld-x86-64/pr21038a-now.d	2022-02-07 10:09:33.000000000 +0100
790e0da
+++ binutils-2.38-new/ld/testsuite/ld-x86-64/pr21038a-now.d	2023-03-07 07:55:49.792444204 +0100
f23ce7c
@@ -20,7 +20,8 @@ Contents of the .eh_frame section:
f23ce7c
   DW_CFA_offset: r16 \(rip\) at cfa-8
f23ce7c
   DW_CFA_nop
f23ce7c
   DW_CFA_nop
f23ce7c
-
f23ce7c
+#pass
f23ce7c
+  
f23ce7c
 0+18 0000000000000014 0000001c FDE cie=00000000 pc=00000000000001c8..00000000000001d4
f23ce7c
   DW_CFA_nop
f23ce7c
   DW_CFA_nop
8969267
diff -rupN --no-dereference binutils-2.38/ld/testsuite/ld-x86-64/pr21038b.d binutils-2.38-new/ld/testsuite/ld-x86-64/pr21038b.d
8969267
--- binutils-2.38/ld/testsuite/ld-x86-64/pr21038b.d	2022-01-22 13:14:09.000000000 +0100
790e0da
+++ binutils-2.38-new/ld/testsuite/ld-x86-64/pr21038b.d	2023-03-07 07:55:49.792444204 +0100
f23ce7c
@@ -19,6 +19,7 @@ Contents of the .eh_frame section:
f23ce7c
   DW_CFA_offset: r16 \(rip\) at cfa-8
f23ce7c
   DW_CFA_nop
f23ce7c
   DW_CFA_nop
f23ce7c
+#pass
f23ce7c
 
f23ce7c
 0+18 0000000000000014 0000001c FDE cie=00000000 pc=00000000000001d8..00000000000001dd
f23ce7c
   DW_CFA_nop
8969267
diff -rupN --no-dereference binutils-2.38/ld/testsuite/ld-x86-64/pr21038b-now.d binutils-2.38-new/ld/testsuite/ld-x86-64/pr21038b-now.d
8969267
--- binutils-2.38/ld/testsuite/ld-x86-64/pr21038b-now.d	2022-02-07 10:09:33.000000000 +0100
790e0da
+++ binutils-2.38-new/ld/testsuite/ld-x86-64/pr21038b-now.d	2023-03-07 07:55:49.792444204 +0100
f23ce7c
@@ -20,7 +20,8 @@ Contents of the .eh_frame section:
f23ce7c
   DW_CFA_offset: r16 \(rip\) at cfa-8
f23ce7c
   DW_CFA_nop
f23ce7c
   DW_CFA_nop
f23ce7c
-
f23ce7c
+#pass
f23ce7c
+  
f23ce7c
 0+18 0000000000000014 0000001c FDE cie=00000000 pc=00000000000001d8..00000000000001dd
f23ce7c
   DW_CFA_nop
f23ce7c
   DW_CFA_nop
8969267
diff -rupN --no-dereference binutils-2.38/ld/testsuite/ld-x86-64/pr21038c.d binutils-2.38-new/ld/testsuite/ld-x86-64/pr21038c.d
8969267
--- binutils-2.38/ld/testsuite/ld-x86-64/pr21038c.d	2022-02-07 10:09:33.000000000 +0100
790e0da
+++ binutils-2.38-new/ld/testsuite/ld-x86-64/pr21038c.d	2023-03-07 07:55:49.792444204 +0100
f23ce7c
@@ -19,7 +19,8 @@ Contents of the .eh_frame section:
f23ce7c
   DW_CFA_offset: r16 \(rip\) at cfa-8
f23ce7c
   DW_CFA_nop
f23ce7c
   DW_CFA_nop
f23ce7c
-
f23ce7c
+#pass
f23ce7c
+  
f23ce7c
 0+18 0000000000000014 0000001c FDE cie=00000000 pc=0000000000000220..0000000000000231
f23ce7c
   DW_CFA_nop
f23ce7c
   DW_CFA_nop
8969267
diff -rupN --no-dereference binutils-2.38/ld/testsuite/ld-x86-64/pr21038c-now.d binutils-2.38-new/ld/testsuite/ld-x86-64/pr21038c-now.d
8969267
--- binutils-2.38/ld/testsuite/ld-x86-64/pr21038c-now.d	2022-02-07 10:09:33.000000000 +0100
790e0da
+++ binutils-2.38-new/ld/testsuite/ld-x86-64/pr21038c-now.d	2023-03-07 07:55:49.793444206 +0100
f23ce7c
@@ -20,7 +20,8 @@ Contents of the .eh_frame section:
f23ce7c
   DW_CFA_offset: r16 \(rip\) at cfa-8
f23ce7c
   DW_CFA_nop
f23ce7c
   DW_CFA_nop
f23ce7c
-
f23ce7c
+#pass
f23ce7c
+  
f23ce7c
 0+18 0000000000000014 0000001c FDE cie=00000000 pc=0000000000000220..0000000000000231
f23ce7c
   DW_CFA_nop
f23ce7c
   DW_CFA_nop
8969267
diff -rupN --no-dereference binutils-2.38/ld/testsuite/ld-x86-64/tlspic2.rd binutils-2.38-new/ld/testsuite/ld-x86-64/tlspic2.rd
8969267
--- binutils-2.38/ld/testsuite/ld-x86-64/tlspic2.rd	2022-01-22 13:14:09.000000000 +0100
790e0da
+++ binutils-2.38-new/ld/testsuite/ld-x86-64/tlspic2.rd	2023-03-07 07:55:49.793444206 +0100
f23ce7c
@@ -14,6 +14,7 @@ Section Headers:
f23ce7c
  +\[[ 0-9]+\] .dynsym +.*
f23ce7c
  +\[[ 0-9]+\] .dynstr +.*
f23ce7c
  +\[[ 0-9]+\] .rela.dyn +.*
f23ce7c
+#pass
f23ce7c
  +\[[ 0-9]+\] .plt +.*
f23ce7c
  +\[[ 0-9]+\] .plt.got +.*
f23ce7c
  +\[[ 0-9]+\] .text +PROGBITS +0+1000 0+1000 0+31a 00 +AX +0 +0 4096