summaryrefslogblamecommitdiff
path: root/system/binutils/disable-textrel-test.patch
blob: f01921996f2394e5fde57b13333be4fcc1b6a63d (plain) (tree)










































                                                                                                  
musl doesn't support TEXTRELs, so the pr22001-1 test will always segfault.

Upstream-URL: https://sourceware.org/bugzilla/show_bug.cgi?id=30925

--- binutils-2.41/ld/testsuite/ld-i386/i386.exp.old	2023-07-02 23:00:00.000000000 +0000
+++ binutils-2.41/ld/testsuite/ld-i386/i386.exp	2023-09-30 12:34:46.594675721 +0000
@@ -1318,6 +1318,20 @@
 	] \
     ]
 
+    if { ![istarget i?86-*-musl] } {
+	run_ld_link_exec_tests [list \
+	    [list \
+		"Run pr22001-1" \
+		"$NOPIE_LDFLAGS -Wl,-z,nocopyreloc,--no-as-needed,-z,notext tmpdir/pr22001-1.so" \
+		"-Wa,-mx86-used-note=yes" \
+		{ pr22001-1b.c } \
+		"pr22001-1" \
+		"pass.out" \
+		"$NOPIE_CFLAGS" \
+	    ] \
+	]
+    }
+
     run_ld_link_exec_tests [list \
 	[list \
 	    "Run weakundef1 without PIE" \
@@ -1328,15 +1342,6 @@
 	    "pass.out" \
 	    "$NOPIE_CFLAGS" \
 	] \
-	[list \
-	    "Run pr22001-1" \
-	    "$NOPIE_LDFLAGS -Wl,-z,nocopyreloc,--no-as-needed,-z,notext tmpdir/pr22001-1.so" \
-	    "-Wa,-mx86-used-note=yes" \
-	    { pr22001-1b.c } \
-	    "pr22001-1" \
-	    "pass.out" \
-	    "$NOPIE_CFLAGS" \
-	] \
 	[list \
 	    "Run pr22001-1 (PIE 1)" \
 	    "$NOPIE_LDFLAGS -Wl,-z,nocopyreloc,--no-as-needed tmpdir/pr22001-1.so" \