aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Robinson <andr345@gmail.com>2009-05-15 14:33:17 +0200
committerAndreas Robinson <andr345@gmail.com>2009-05-15 14:33:17 +0200
commit7fb32e459c9f6d1c2e21713f9f024a03e31a93ed (patch)
treed3bda7aa9eedeff80a8445b9bbaa5ac58ee6db38
parent686703ef1f9f6b123ef67360a008d1ffe9bdc074 (diff)
downloadmodule-init-tools-7fb32e459c9f6d1c2e21713f9f024a03e31a93ed.tar.gz
elfops: export load_section(), hide load_strings()
load_strings() was planned to replace get_section() + next_string() e.g in modinfo. However it turns out there are no advantages in style and few in function. As it won't be used outside elfops, the export is removed. load_section() OTOH, will replace get_section() so we export it now. Signed-off-by: Andreas Robinson <andr345@gmail.com>
-rw-r--r--elfops.h4
-rw-r--r--elfops_core.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/elfops.h b/elfops.h
index dc10c3d..24ebc07 100644
--- a/elfops.h
+++ b/elfops.h
@@ -54,8 +54,8 @@ struct module_tables
struct module_ops
{
- struct string_table *(*load_strings)(struct elf_file *module,
- const char *secname, struct string_table *tbl);
+ void *(*load_section)(struct elf_file *module,
+ const char *secname, unsigned long *secsize);
struct string_table *(*load_symbols)(struct elf_file *module);
struct string_table *(*load_dep_syms)(const char *pathname,
struct elf_file *module, struct string_table **types);
diff --git a/elfops_core.c b/elfops_core.c
index 8b7f4de..0b6596a 100644
--- a/elfops_core.c
+++ b/elfops_core.c
@@ -290,7 +290,7 @@ static void PERBIT(fetch_tables)(struct elf_file *module,
}
struct module_ops PERBIT(mod_ops) = {
- .load_strings = PERBIT(load_strings),
+ .load_section = PERBIT(load_section),
.load_symbols = PERBIT(load_symbols),
.load_dep_syms = PERBIT(load_dep_syms),
.fetch_tables = PERBIT(fetch_tables),