summaryrefslogblamecommitdiff
path: root/system/binutils/musl-versioned-syms.patch
blob: 3812947c360df80088c7f6a9ef338dc6af69a6ea (plain) (tree)


















                                                                                             
This test will not work on musl which does not support symbol versioning.

--- binutils-2.41/ld/testsuite/ld-elfvers/vers.exp.old	2023-07-02 18:00:00.000000000 -0500
+++ binutils-2.41/ld/testsuite/ld-elfvers/vers.exp	2023-09-22 22:20:51.407688782 -0500
@@ -888,8 +888,12 @@
 # Test that when we override a versioned symbol from the library this
 # symbol appears in the dynamic symbol table of the executable.
 #
-build_vers_lib_pic "vers16a" vers16a.c vers16a "" vers16.map vers16a.ver vers16a.dsym ""
-build_exec "vers16" vers16.c vers16 "-Wl,--no-as-needed" vers16a.so "" vers16.dsym ""
+if { [istarget *-*-musl*] } then {
+    xfail "vers16"
+} else {
+    build_vers_lib_pic "vers16a" vers16a.c vers16a "" vers16.map vers16a.ver vers16a.dsym ""
+    build_exec "vers16" vers16.c vers16 "-Wl,--no-as-needed" vers16a.so "" vers16.dsym ""
+}
 
 # Test a weak versioned symbol.
 build_vers_lib_pic "vers17" vers17.c vers17 "" vers17.map vers17.ver vers17.dsym ""