diff options
| author | Rusty Russell <rusty@rustcorp.com.au> | 2003-06-30 19:35:08 -0700 |
|---|---|---|
| committer | Anton Blanchard <anton@samba.org> | 2003-06-30 19:35:08 -0700 |
| commit | b9cc291f8f8162475ef6ffec9f635519871408d7 (patch) | |
| tree | c2c518cee1c9e1bb660cac3c8876ee27e5b238f8 /include/linux | |
| parent | cf82fb444e43f004dd800a1c3d17de51858b643d (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.h | 3 |
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; |
