diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2008-07-22 20:24:27 -0400 |
---|---|---|
committer | Rusty Russell <rusty@rustcorp.com.au> | 2008-07-22 05:24:27 -0400 |
commit | 2f0f2a334bc38b61a9afca951185cd3844ee709d (patch) | |
tree | c73089563f51c818ed97dec463408d6ac9cf1e8e /include/linux/module.h | |
parent | f7f5b67557eac1131ba6532522e3c50eced34238 (diff) |
module: turn longs into ints for module sizes
This shrinks module.o and each *.ko file.
And finally, structure members which hold length of module
code (four such members there) and count of symbols
are converted from longs to ints.
We cannot possibly have a module where 32 bits won't
be enough to hold such counts.
For one, module loading checks module size for sanity
before loading, so such insanely big module will fail
that test first.
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Diffstat (limited to 'include/linux/module.h')
-rw-r--r-- | include/linux/module.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/linux/module.h b/include/linux/module.h index a860a2c1f379..fce15ebd0e1c 100644 --- a/include/linux/module.h +++ b/include/linux/module.h | |||
@@ -288,10 +288,10 @@ struct module | |||
288 | void *module_core; | 288 | void *module_core; |
289 | 289 | ||
290 | /* Here are the sizes of the init and core sections */ | 290 | /* Here are the sizes of the init and core sections */ |
291 | unsigned long init_size, core_size; | 291 | unsigned int init_size, core_size; |
292 | 292 | ||
293 | /* The size of the executable code in each section. */ | 293 | /* The size of the executable code in each section. */ |
294 | unsigned long init_text_size, core_text_size; | 294 | unsigned int init_text_size, core_text_size; |
295 | 295 | ||
296 | /* The handle returned from unwind_add_table. */ | 296 | /* The handle returned from unwind_add_table. */ |
297 | void *unwind_info; | 297 | void *unwind_info; |
@@ -311,7 +311,7 @@ struct module | |||
311 | #ifdef CONFIG_KALLSYMS | 311 | #ifdef CONFIG_KALLSYMS |
312 | /* We keep the symbol and string tables for kallsyms. */ | 312 | /* We keep the symbol and string tables for kallsyms. */ |
313 | Elf_Sym *symtab; | 313 | Elf_Sym *symtab; |
314 | unsigned long num_symtab; | 314 | unsigned int num_symtab; |
315 | char *strtab; | 315 | char *strtab; |
316 | 316 | ||
317 | /* Section attributes */ | 317 | /* Section attributes */ |