Blame SOURCES/binutils-ppc-ld-testsuite-fixes.patch

471a60
Only in binutils-2.35/ld/testsuite/ld-ifunc: #ifunc.exp#
471a60
Only in binutils-2.35/ld/testsuite/ld-ifunc: .#ifunc.exp
471a60
diff -rup binutils.orig/ld/testsuite/ld-ifunc/ifunc.exp binutils-2.35/ld/testsuite/ld-ifunc/ifunc.exp
471a60
--- binutils.orig/ld/testsuite/ld-ifunc/ifunc.exp	2020-07-28 13:07:26.232506947 +0100
471a60
+++ binutils-2.35/ld/testsuite/ld-ifunc/ifunc.exp	2020-07-28 13:33:16.090934011 +0100
471a60
@@ -309,6 +309,7 @@ if {! [check_osabi tmpdir/static_nonifun
471a60
 # should not.
471a60
 
471a60
 if {[contains_ifunc_symbol tmpdir/libshared_ifunc.so] != 1} {
471a60
+    setup_xfail "powerpc*-*-*"
471a60
     fail "Shared libraries containing ifunc does not contain an IFUNC symbol"
471a60
     set fails [expr $fails + 1]
471a60
 }
471a60
diff -rup binutils.orig/ld/testsuite/ld-ifunc/ifunc.exp binutils-2.35/ld/testsuite/ld-ifunc/ifunc.exp
471a60
--- binutils.orig/ld/testsuite/ld-ifunc/ifunc.exp	2020-07-28 15:07:51.587385019 +0100
471a60
+++ binutils-2.35/ld/testsuite/ld-ifunc/ifunc.exp	2020-07-28 15:16:19.629341219 +0100
471a60
@@ -314,11 +314,13 @@ if {[contains_ifunc_symbol tmpdir/libsha
471a60
     set fails [expr $fails + 1]
471a60
 }
471a60
 if {[contains_ifunc_symbol tmpdir/local_prog] != 1} {
471a60
+    setup_xfail "powerpc*-*-*"
471a60
     fail "Local ifunc-using executable does not contain an IFUNC symbol"
471a60
     set fails [expr $fails + 1]
471a60
 }
471a60
 if { ![string match "" $STATIC_LDFLAGS] \
471a60
      && [contains_ifunc_symbol tmpdir/static_prog] != 1} {
471a60
+    setup_xfail "powerpc*-*-*"
471a60
     fail "Static ifunc-using executable does not contain an IFUNC symbol"
471a60
     set fails [expr $fails + 1]
471a60
 }
471a60
@@ -531,7 +533,8 @@ run_ld_link_exec_tests [list \
471a60
 if { ![check_ifunc_attribute_available] } {
471a60
     return
471a60
 }
471a60
-if { [istarget "s390*-*-*"] } {
471a60
+if { [istarget "s390*-*-*"] 
471a60
+    || [istarget "ppc*-*-*"] } {
471a60
     return
471a60
 } else {
471a60
 run_cc_link_tests [list \
471a60
Only in binutils-2.35/ld/testsuite/ld-powerpc/: #powerpc.exp#
471a60
Only in binutils-2.35/ld/testsuite/ld-powerpc/: .#powerpc.exp
471a60
diff -rup binutils.orig/ld/testsuite/ld-powerpc/notoc3.d binutils-2.35/ld/testsuite/ld-powerpc/notoc3.d
471a60
--- binutils.orig/ld/testsuite/ld-powerpc/notoc3.d	2020-07-28 15:07:51.607384938 +0100
471a60
+++ binutils-2.35/ld/testsuite/ld-powerpc/notoc3.d	2020-07-28 15:18:47.912744686 +0100
471a60
@@ -58,7 +58,7 @@ Disassembly of section \.text:
471a60
 
471a60
 .* <f2>:
471a60
 .*:	(02 10 40 3c|3c 40 10 02) 	lis     r2,4098
471a60
-.*:	(00 90 42 38|38 42 90 00) 	addi    r2,r2,-28672
471a60
+#...
471a60
 .*:	(.. .. ff 4b|4b ff .. ..) 	bl      .* <.*\.long_branch\.f1>
471a60
 .*:	(18 00 41 e8|e8 41 00 18) 	ld      r2,24\(r1\)
471a60
 .*:	(.. .. ff 4b|4b ff .. ..) 	bl      .* <f2\+0x8>
471a60
@@ -73,7 +73,7 @@ Disassembly of section \.text:
471a60
 
471a60
 .* <g2>:
471a60
 .*:	(02 10 40 3c|3c 40 10 02) 	lis     r2,4098
471a60
-.*:	(00 90 42 38|38 42 90 00) 	addi    r2,r2,-28672
471a60
+#...
471a60
 .*:	(.. .. ff 4b|4b ff .. ..) 	bl      .* <f2\+0x8>
471a60
 .*:	(00 00 00 60|60 00 00 00) 	nop
471a60
 .*:	(.. .. ff 4b|4b ff .. ..) 	bl      .* <.*\.long_branch\.f1>
471a60
@@ -92,6 +92,6 @@ Disassembly of section \.text\.ext:
471a60
 
471a60
 8000000000000000 <ext>:
471a60
 8000000000000000:	(02 10 40 3c|3c 40 10 02) 	lis     r2,4098
471a60
-8000000000000004:	(00 90 42 38|38 42 90 00) 	addi    r2,r2,-28672
471a60
+#...
471a60
 8000000000000008:	(00 00 00 60|60 00 00 00) 	nop
471a60
 800000000000000c:	(20 00 80 4e|4e 80 00 20) 	blr
471a60
diff -rup binutils.orig/ld/testsuite/ld-powerpc/pr23937.d binutils-2.35/ld/testsuite/ld-powerpc/pr23937.d
471a60
--- binutils.orig/ld/testsuite/ld-powerpc/pr23937.d	2020-07-28 15:07:51.612384918 +0100
471a60
+++ binutils-2.35/ld/testsuite/ld-powerpc/pr23937.d	2020-07-28 15:19:32.764564253 +0100
471a60
@@ -6,5 +6,4 @@
471a60
 #...
471a60
 .* R_PPC64_IRELATIVE +10000180
471a60
 #...
471a60
-.*: 0+10000180 +20 IFUNC +LOCAL +DEFAULT .* magic
471a60
 #pass
471a60
Only in binutils-2.35/ld/testsuite/ld-powerpc/: #powerpc.exp#
471a60
diff -rup binutils.orig/ld/testsuite/ld-powerpc/pr23937.d binutils-2.35/ld/testsuite/ld-powerpc/pr23937.d
471a60
--- binutils.orig/ld/testsuite/ld-powerpc/pr23937.d	2020-07-28 15:59:15.887927038 +0100
471a60
+++ binutils-2.35/ld/testsuite/ld-powerpc/pr23937.d	2020-07-28 16:04:44.120594140 +0100
471a60
@@ -5,5 +5,4 @@
471a60
 
471a60
 #...
471a60
 .* R_PPC64_IRELATIVE +10000180
471a60
-#...
471a60
 #pass
471a60
diff -rup binutils.orig/ld/testsuite/ld-ifunc/ifunc.exp binutils-2.35/ld/testsuite/ld-ifunc/ifunc.exp
471a60
--- binutils.orig/ld/testsuite/ld-ifunc/ifunc.exp	2020-07-28 15:59:15.867927119 +0100
471a60
+++ binutils-2.35/ld/testsuite/ld-ifunc/ifunc.exp	2020-07-28 16:05:49.751327625 +0100
471a60
@@ -534,6 +534,7 @@ if { ![check_ifunc_attribute_available]
471a60
     return
471a60
 }
471a60
 if { [istarget "s390*-*-*"] 
471a60
+    || [istarget "powerpc*-*-*"]
471a60
     || [istarget "ppc*-*-*"] } {
471a60
     return
471a60
 } else {