diff options
| author | Steve French <sfrench@us.ibm.com> | 2006-01-12 17:47:08 -0500 |
|---|---|---|
| committer | Steve French <sfrench@us.ibm.com> | 2006-01-12 17:47:08 -0500 |
| commit | 94bc2be31a01a3055ec94176e595dfe208e92d3b (patch) | |
| tree | ebfbe81c6718a6390bfa1b99c6d228237d818576 /scripts/mod/modpost.c | |
| parent | c32a0b689cb9cc160cfcd19735bbf50bb70c6ef4 (diff) | |
| parent | 58cba4650a7a414eabd2b40cc9d8e45fcdf192d9 (diff) | |
Merge with /pub/scm/linux/kernel/git/torvalds/linux-2.6.git
Signed-off-by: Steve French <sfrench@us.ibm.com>
Diffstat (limited to 'scripts/mod/modpost.c')
| -rw-r--r-- | scripts/mod/modpost.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/scripts/mod/modpost.c b/scripts/mod/modpost.c index 3bed09e625c0..f70ff13d4818 100644 --- a/scripts/mod/modpost.c +++ b/scripts/mod/modpost.c | |||
| @@ -326,8 +326,8 @@ parse_elf_finish(struct elf_info *info) | |||
| 326 | release_file(info->hdr, info->size); | 326 | release_file(info->hdr, info->size); |
| 327 | } | 327 | } |
| 328 | 328 | ||
| 329 | #define CRC_PFX MODULE_SYMBOL_PREFIX "__crc_" | 329 | #define CRC_PFX "__crc_" |
| 330 | #define KSYMTAB_PFX MODULE_SYMBOL_PREFIX "__ksymtab_" | 330 | #define KSYMTAB_PFX "__ksymtab_" |
| 331 | 331 | ||
| 332 | void | 332 | void |
| 333 | handle_modversions(struct module *mod, struct elf_info *info, | 333 | handle_modversions(struct module *mod, struct elf_info *info, |
| @@ -539,10 +539,9 @@ add_header(struct buffer *b, struct module *mod) | |||
| 539 | buf_printf(b, "\n"); | 539 | buf_printf(b, "\n"); |
| 540 | buf_printf(b, "MODULE_INFO(vermagic, VERMAGIC_STRING);\n"); | 540 | buf_printf(b, "MODULE_INFO(vermagic, VERMAGIC_STRING);\n"); |
| 541 | buf_printf(b, "\n"); | 541 | buf_printf(b, "\n"); |
| 542 | buf_printf(b, "#undef unix\n"); /* We have a module called "unix" */ | ||
| 543 | buf_printf(b, "struct module __this_module\n"); | 542 | buf_printf(b, "struct module __this_module\n"); |
| 544 | buf_printf(b, "__attribute__((section(\".gnu.linkonce.this_module\"))) = {\n"); | 543 | buf_printf(b, "__attribute__((section(\".gnu.linkonce.this_module\"))) = {\n"); |
| 545 | buf_printf(b, " .name = __stringify(KBUILD_MODNAME),\n"); | 544 | buf_printf(b, " .name = KBUILD_MODNAME,\n"); |
| 546 | if (mod->has_init) | 545 | if (mod->has_init) |
| 547 | buf_printf(b, " .init = init_module,\n"); | 546 | buf_printf(b, " .init = init_module,\n"); |
| 548 | if (mod->has_cleanup) | 547 | if (mod->has_cleanup) |
