elf: implement kmod_module_get_dependency_symbols()
Uses kmod_elf_get_dependency_symbols() that looks into ".symtab" for
UNDEF symbols and matches the name from ".strtab" to "__versions" to
get crc.
Likely the public API should unify the symbol information getters and
list release, they are almost the same.
diff --git a/TODO b/TODO
index d23a4d8..cbc5440 100644
--- a/TODO
+++ b/TODO
@@ -18,6 +18,24 @@
* provide 1:1 compatibility with module-init-tools's modprobe
- dump configuration
+* provide depmod:
+ - add missing libkmod-elf.c functions:
+ - fetch_tables()
+ - deref_sym() (used by fetch_tables)
+ - add index writing functions to kmod-depmod.c
+ - 1:1 compatible kmod-depmod.c
+
+* review API, maybe unify all of these setters:
+ - kmod_module_version_get_symbol()
+ - kmod_module_version_get_crc()
+ - kmod_module_symbol_get_symbol()
+ - kmod_module_symbol_get_crc()
+ - kmod_module_dependency_symbol_get_symbol()
+ - kmod_module_dependency_symbol_get_crc()
+ - kmod_module_versions_free_list()
+ - kmod_module_symbols_free_list()
+ - kmod_module_dependency_symbols_free_list()
+
* provide modules.archive, a cache file with all modules compressed
and a fast access. It's like a tar.gz, but with each entry
compressed as opposed to the whole tar compressed, easy to pick