diff options
author | Lucas De Marchi <lucas.demarchi@profusion.mobi> | 2012-01-26 01:21:17 -0200 |
---|---|---|
committer | Lucas De Marchi <lucas.demarchi@profusion.mobi> | 2012-01-26 16:05:05 -0200 |
commit | ea17e2b0433f78f2972004b0850fa8a440fe5333 (patch) | |
tree | 3bee2fb015025df7e114f776969290cb03a0aeb8 /libkmod/libkmod-elf.c | |
parent | 95daea07f44f6907859850e37d3468376759f66f (diff) | |
download | kmod-ea17e2b0433f78f2972004b0850fa8a440fe5333.tar.gz |
elf: privately export kmod_elf_get_section()
This function is used to find a certain section in ELF file. It will be
used to get the modname from an ELF file.
Diffstat (limited to 'libkmod/libkmod-elf.c')
-rw-r--r-- | libkmod/libkmod-elf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libkmod/libkmod-elf.c b/libkmod/libkmod-elf.c index 72e3c5f..1f47e07 100644 --- a/libkmod/libkmod-elf.c +++ b/libkmod/libkmod-elf.c @@ -375,7 +375,7 @@ const void *kmod_elf_get_memory(const struct kmod_elf *elf) return elf->memory; } -static int kmod_elf_get_section(const struct kmod_elf *elf, const char *section, const void **buf, uint64_t *buf_size) +int kmod_elf_get_section(const struct kmod_elf *elf, const char *section, const void **buf, uint64_t *buf_size) { uint64_t nameslen; const char *names = elf_get_strings_section(elf, &nameslen); |