summaryrefslogtreecommitdiff
path: root/system/binutils/musl-preinit-array.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/musl-preinit-array.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/musl-preinit-array.patch')
-rw-r--r--system/binutils/musl-preinit-array.patch35
1 files changed, 35 insertions, 0 deletions
diff --git a/system/binutils/musl-preinit-array.patch b/system/binutils/musl-preinit-array.patch
new file mode 100644
index 000000000..9932f3c7f
--- /dev/null
+++ b/system/binutils/musl-preinit-array.patch
@@ -0,0 +1,35 @@
+musl libc currently does not run .preinit_array functions.
+
+--- binutils-2.41/ld/testsuite/ld-elf/elf.exp.old 2023-09-22 20:55:13.894385414 -0500
++++ binutils-2.41/ld/testsuite/ld-elf/elf.exp 2023-09-22 21:31:13.354594152 -0500
+@@ -427,17 +427,21 @@
+ run_ld_link_exec_tests $array_tests_pie $xfails
+
+ if { $STATIC_PIE_LDFLAGS != "" } then {
++ if { ![istarget *-*-musl*] } then {
++ run_ld_link_exec_tests [list \
++ [list \
++ "Static PIE preinit array" \
++ "$STATIC_PIE_LDFLAGS" \
++ "" \
++ {preinit.c} \
++ "preinit-static-pie" \
++ "preinit.out" \
++ "-fPIE" \
++ ] \
++ ]
++ }
+ run_ld_link_exec_tests [list \
+ [list \
+- "Static PIE preinit array" \
+- "$STATIC_PIE_LDFLAGS" \
+- "" \
+- {preinit.c} \
+- "preinit-static-pie" \
+- "preinit.out" \
+- "-fPIE" \
+- ] \
+- [list \
+ "Static PIE init array" \
+ "$STATIC_PIE_LDFLAGS" \
+ "" \