summaryrefslogblamecommitdiff
path: root/system/binutils/remove-pr2404-tests.patch
blob: 94ea6399648563b34b0e1f5ddd8a7d8d341a05ec (plain) (tree)
1
2
3
4
5

                                           

                                                                                           
                    





























                                                 
                      



                                                            




                                               
                          



                                                                     


                                                                                  
                      




                                           
                                        





                                
                                 
                          
                      



                                   
                                                                                                



                          
                                        


                                            
                                                                                                           



                          
                                        




                           
These tests fail to link correctly on musl.

--- binutils-2.41/ld/testsuite/ld-elf/shared.exp.old	2023-09-22 20:47:52.781342124 -0500
+++ binutils-2.41/ld/testsuite/ld-elf/shared.exp	2023-09-22 20:54:03.151915244 -0500
@@ -800,30 +800,6 @@
 
 run_cc_link_tests [list \
     [list \
-	"Build libpr2404a.so" \
-	"-shared $NOSANITIZE_CFLAGS" \
-	"-fPIC $NOSANITIZE_CFLAGS" \
-	{pr2404a.c} \
-	{} \
-	"libpr2404a.so" \
-    ] \
-    [list \
-	"Build libpr2404n.so" \
-	"-shared -Wl,-z,now $NOSANITIZE_CFLAGS" \
-	"-fPIC $NOSANITIZE_CFLAGS" \
-	{pr2404a.c} \
-	{} \
-	"libpr2404n.so" \
-    ] \
-    [list \
-	"Build libpr2404b.a" \
-	"" \
-	"$NOSANITIZE_CFLAGS" \
-	{pr2404b.c} \
-	{} \
-	"libpr2404b.a" \
-    ] \
-    [list \
 	"Build libpr26590a.so" \
 	"-shared" \
 	"-fPIC" \
@@ -1133,17 +1107,6 @@
     [list "Run relmain" \
      "-Wl,--no-as-needed,-rpath=tmpdir -Ltmpdir -lrel" "" \
      {relmain.c} "relmain" "relmain.out" ] \
-    [list "Run pr2404" \
-     "$NOSANITIZE_CFLAGS -Wl,--no-as-needed \
-      tmpdir/pr2404b.o tmpdir/libpr2404a.so" \
-     "" \
-     {dummy.c} "pr2404" "pr2404.out" \
-     "$NOSANITIZE_CFLAGS" ] \
-    [list "Run pr2404n" \
-     "$NOSANITIZE_CFLAGS -Wl,-z,now \
-      -Wl,--no-as-needed tmpdir/pr2404b.o tmpdir/libpr2404n.so" "" \
-     {dummy.c} "pr2404n" "pr2404.out" \
-     "$NOSANITIZE_CFLAGS" ] \
     [list "Run pr18458" \
      "-Wl,--no-as-needed,-z,now tmpdir/libpr18458a.so tmpdir/libpr18458b.so" "" \
      {pr18458c.c} "pr18458" "pass.out" ] \
@@ -1338,14 +1303,6 @@
      || [istarget *-*-gnu*] } {
     run_cc_link_tests [list \
 	[list \
-	    "Build libpr2404b.a with PIE" \
-	    "" \
-	    "-fPIE $NOSANITIZE_CFLAGS" \
-	    { pr2404b.c } \
-	    {} \
-	    "libpr2404b.a" \
-	] \
-	[list \
 	    "Build pr19579a.o" \
 	    "" "-fPIE -fcommon" \
 	    {pr19579a.c} \
@@ -1425,24 +1382,6 @@
 	    "-fPIE" \
 	] \
 	[list \
-	    "Run pr2404 with PIE" \
-	    "-pie $NOSANITIZE_CFLAGS -Wl,--no-as-needed tmpdir/pr2404b.o tmpdir/libpr2404a.so" \
-	    "" \
-	    { dummy.c } \
-	    "pr2404pie" \
-	    "pr2404.out" \
-	    "-fPIE $NOSANITIZE_CFLAGS" \
-	] \
-	[list \
-	    "Run pr2404 with PIE (-z now)" \
-	    "-pie $NOSANITIZE_CFLAGS -Wl,-z,now -Wl,--no-as-needed tmpdir/pr2404b.o tmpdir/libpr2404n.so" \
-	    "" \
-	    { dummy.c } \
-	    "pr2404pien" \
-	    "pr2404.out" \
-	    "-fPIE $NOSANITIZE_CFLAGS" \
-	] \
-	[list \
 	    "Run pr18718" \
 	    "" \
 	    "" \