From 2c9ea8d0ea3c4510b5a4c9314c84c4444c933726 Mon Sep 17 00:00:00 2001 From: "A. Wilcox" Date: Fri, 22 Sep 2023 23:51:50 -0500 Subject: system/binutils: Update to 2.41 * Vastly updated with significant features and target support. * All tests are enabled now and passing! Note: ARMv7 tests require the commit directly before this to be applied to system/gcc. Fixes: #652, #668, #1070 --- system/binutils/disable-textrel-test.patch | 43 ++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 system/binutils/disable-textrel-test.patch (limited to 'system/binutils/disable-textrel-test.patch') diff --git a/system/binutils/disable-textrel-test.patch b/system/binutils/disable-textrel-test.patch new file mode 100644 index 000000000..f01921996 --- /dev/null +++ b/system/binutils/disable-textrel-test.patch @@ -0,0 +1,43 @@ +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" \ -- cgit v1.2.3-60-g2f50