summaryrefslogtreecommitdiff
path: root/system/elfutils/elfcompress-wildcard.patch
diff options
context:
space:
mode:
Diffstat (limited to 'system/elfutils/elfcompress-wildcard.patch')
-rw-r--r--system/elfutils/elfcompress-wildcard.patch27
1 files changed, 27 insertions, 0 deletions
diff --git a/system/elfutils/elfcompress-wildcard.patch b/system/elfutils/elfcompress-wildcard.patch
new file mode 100644
index 000000000..14c422b05
--- /dev/null
+++ b/system/elfutils/elfcompress-wildcard.patch
@@ -0,0 +1,27 @@
+Since musl doesn't support FNM_EXTMATCH, we need to do things.
+
+Ref: https://www.openwall.com/lists/musl/2020/10/26/7
+
+--- elfutils-0.192/src/elfcompress.c.old 2024-10-18 14:03:43.000000000 -0500
++++ elfutils-0.192/src/elfcompress.c 2024-11-19 05:43:45.360225756 -0600
+@@ -154,7 +154,10 @@
+ if (type == UNSET)
+ type = ZLIB;
+ if (patterns == NULL)
+- add_pattern (".?(z)debug*");
++ {
++ add_pattern (".debug*");
++ add_pattern (".zdebug*");
++ }
+ break;
+
+ case ARGP_KEY_NO_ARGS:
+@@ -1412,7 +1415,7 @@
+ "'zlib-gnu' (.zdebug GNU style compression, 'gnu' is an alias) or 'zstd' (ELF ZSTD compression)"),
+ 0 },
+ { "name", 'n', "SECTION", 0,
+- N_("SECTION name to (de)compress, SECTION is an extended wildcard pattern (defaults to '.?(z)debug*')"),
++ N_("SECTION name to (de)compress, SECTION is a wildcard pattern (defaults to '.debug*' and '.zdebug*')"),
+ 0 },
+ { "verbose", 'v', NULL, 0,
+ N_("Print a message for each section being (de)compressed"),