[PATCH 03/16] elfops: export load_section(), hide load_strings()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxx>
---
 elfops.h      |    4 ++--
 elfops_core.c |    2 +-
 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),
-- 
1.6.0.4

--
To unsubscribe from this list: send the line "unsubscribe linux-modules" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux