summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorRusty Russell <rusty@rustcorp.com.au>2003-06-30 19:35:08 -0700
committerAnton Blanchard <anton@samba.org>2003-06-30 19:35:08 -0700
commitb9cc291f8f8162475ef6ffec9f635519871408d7 (patch)
treec2c518cee1c9e1bb660cac3c8876ee27e5b238f8 /include/linux
parentcf82fb444e43f004dd800a1c3d17de51858b643d (diff)
[PATCH] Identify Code Section Of Modules for kallsyms
Remember the size of the SHF_EXECINSTR sections, which are conveniently at the start of the modules, and use that to more reliably implement module_text_address().
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/module.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/module.h b/include/linux/module.h
index 217df731a8af..1d48f23a8a6a 100644
--- a/include/linux/module.h
+++ b/include/linux/module.h
@@ -217,6 +217,9 @@ struct module
/* Here are the sizes of the init and core sections */
unsigned long init_size, core_size;
+ /* The size of the executable code in each section. */
+ unsigned long init_text_size, core_text_size;
+
/* Arch-specific module values */
struct mod_arch_specific arch;