Linux kernel modules can not just be compressed with gz and bz2, but also
with xz.
Signed-off-by: Mark Wielaard <mjw(a)redhat.com>
---
libdwfl/ChangeLog | 4 ++++
libdwfl/linux-kernel-modules.c | 3 +++
2 files changed, 7 insertions(+)
diff --git a/libdwfl/ChangeLog b/libdwfl/ChangeLog
index ab47c40..e792998 100644
--- a/libdwfl/ChangeLog
+++ b/libdwfl/ChangeLog
@@ -1,3 +1,7 @@
+2014-08-14 Mark Wielaard <mjw(a)redhat.com>
+
+ * linux-kernel-modules.c (check-suffix): Also TRY .ko.yz.
+
2014-07-24 Jan Kratochvil <jan.kratochvil(a)redhat.com>
Fix report_r_debug for prelinked libraries.
diff --git a/libdwfl/linux-kernel-modules.c b/libdwfl/linux-kernel-modules.c
index 1ad7d2f..61b06b6 100644
--- a/libdwfl/linux-kernel-modules.c
+++ b/libdwfl/linux-kernel-modules.c
@@ -302,6 +302,9 @@ check_suffix (const FTSENT *f, size_t namelen)
#if USE_BZLIB
TRY (".ko.bz2");
#endif
+#ifdef USE_LZMA
+ TRY (".ko.xz");
+#endif
return 0;
--
1.8.3.1
Show replies by thread