summaryrefslogtreecommitdiff
path: root/system/binutils/remove-pr2404-tests.patch
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2023-09-22 23:51:50 -0500
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2023-10-03 21:56:52 -0500
commit2c9ea8d0ea3c4510b5a4c9314c84c4444c933726 (patch)
tree856b85bc2e61dd819f3e9a77d2331338cf290561 /system/binutils/remove-pr2404-tests.patch
parentb7807f42fbd231b0783eb0d26fd60b63153ca6d9 (diff)
downloadpackages-2c9ea8d0ea3c4510b5a4c9314c84c4444c933726.tar.gz
packages-2c9ea8d0ea3c4510b5a4c9314c84c4444c933726.tar.bz2
packages-2c9ea8d0ea3c4510b5a4c9314c84c4444c933726.tar.xz
packages-2c9ea8d0ea3c4510b5a4c9314c84c4444c933726.zip
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
Diffstat (limited to 'system/binutils/remove-pr2404-tests.patch')
-rw-r--r--system/binutils/remove-pr2404-tests.patch82
1 files changed, 51 insertions, 31 deletions
diff --git a/system/binutils/remove-pr2404-tests.patch b/system/binutils/remove-pr2404-tests.patch
index 9efdf5242..8dd7db65d 100644
--- a/system/binutils/remove-pr2404-tests.patch
+++ b/system/binutils/remove-pr2404-tests.patch
@@ -1,71 +1,91 @@
These tests fail to link correctly on musl.
---- binutils-2.29/ld/testsuite/ld-elf/shared.exp.old 2017-07-04 08:43:21.000000000 +0000
-+++ binutils-2.29/ld/testsuite/ld-elf/shared.exp 2017-08-19 04:59:05.319481464 +0000
-@@ -375,15 +375,6 @@
- {"Build needed3"
- "tmpdir/needed3.o -Wl,--as-needed -Ltmpdir -lneeded3a -lneeded3b -lneeded1b" ""
- {dummy.c} {} "needed3"}
-- {"Build libpr2404a.so"
-- "-shared" "-fPIC"
-- {pr2404a.c} {} "libpr2404a.so"}
-- {"Build libpr2404n.so"
-- "-shared -Wl,-z,now" "-fPIC"
-- {pr2404a.c} {} "libpr2404n.so"}
-- {"Build libpr2404b.a"
-- "" ""
-- {pr2404b.c} {} "libpr2404b.a"}
- {"Build rdynamic-1"
- "-Wl,--no-dynamic-linker,-export-dynamic,--gc-sections" "-ffunction-sections"
- {rdynamic-1.c} {{readelf {-s} rdynamic-1.rd}} "rdynamic-1"}
-@@ -531,12 +522,6 @@
+--- 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
+@@ -799,30 +799,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" \
+@@ -1132,17 +1108,6 @@
[list "Run relmain" \
"-Wl,--no-as-needed,-rpath=tmpdir -Ltmpdir -lrel" "" \
{relmain.c} "relmain" "relmain.out" ] \
- [list "Run pr2404" \
-- "-Wl,--no-as-needed tmpdir/pr2404b.o tmpdir/libpr2404a.so" "" \
-- {dummy.c} "pr2404" "pr2404.out" ] \
+- "$NOSANITIZE_CFLAGS -Wl,--no-as-needed \
+- tmpdir/pr2404b.o tmpdir/libpr2404a.so" \
+- "" \
+- {dummy.c} "pr2404" "pr2404.out" \
+- "$NOSANITIZE_CFLAGS" ] \
- [list "Run pr2404n" \
-- "-Wl,-z,now -Wl,--no-as-needed tmpdir/pr2404b.o tmpdir/libpr2404n.so" "" \
-- {dummy.c} "pr2404n" "pr2404.out" ] \
+- "$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" ] \
-@@ -675,14 +660,6 @@
+@@ -1341,14 +1306,6 @@
|| [istarget *-*-gnu*] } {
run_cc_link_tests [list \
[list \
- "Build libpr2404b.a with PIE" \
- "" \
-- "-fPIE" \
+- "-fPIE $NOSANITIZE_CFLAGS" \
- { pr2404b.c } \
- {} \
- "libpr2404b.a" \
- ] \
- [list \
"Build pr19579a.o" \
- "" "-fPIE" \
+ "" "-fPIE -fcommon" \
{pr19579a.c} \
-@@ -717,24 +694,6 @@
+@@ -1428,24 +1385,6 @@
"-fPIE" \
] \
[list \
- "Run pr2404 with PIE" \
-- "-pie -Wl,--no-as-needed tmpdir/pr2404b.o tmpdir/libpr2404a.so" \
+- "-pie $NOSANITIZE_CFLAGS -Wl,--no-as-needed tmpdir/pr2404b.o tmpdir/libpr2404a.so" \
- "" \
- { dummy.c } \
- "pr2404pie" \
- "pr2404.out" \
-- "-fPIE" \
+- "-fPIE $NOSANITIZE_CFLAGS" \
- ] \
- [list \
- "Run pr2404 with PIE (-z now)" \
-- "-pie -Wl,-z,now -Wl,--no-as-needed tmpdir/pr2404b.o tmpdir/libpr2404n.so" \
+- "-pie $NOSANITIZE_CFLAGS -Wl,-z,now -Wl,--no-as-needed tmpdir/pr2404b.o tmpdir/libpr2404n.so" \
- "" \
- { dummy.c } \
- "pr2404pien" \
- "pr2404.out" \
-- "-fPIE" \
+- "-fPIE $NOSANITIZE_CFLAGS" \
- ] \
- [list \
"Run pr18718" \