summaryrefslogtreecommitdiffstats
path: root/scripts/mod/modpost.c
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@g5.osdl.org>2005-09-12 15:55:33 -0700
committerLinus Torvalds <torvalds@g5.osdl.org>2005-09-12 15:55:33 -0700
commit9401c705f2a6a7e5df102f6443dba395c3c5e5a8 (patch)
tree19bf660a776995b01c29228604824bb9823e24f3 /scripts/mod/modpost.c
parent61b22e693ea33af02f3380d3dbed9ee65a80c729 (diff)
parent074c5279ef671e4fcd2ce2960ecc9d7d9735fabd (diff)
Merge master.kernel.org:/pub/scm/linux/kernel/git/davem/sparc-2.6
Diffstat (limited to 'scripts/mod/modpost.c')
-rw-r--r--scripts/mod/modpost.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/scripts/mod/modpost.c b/scripts/mod/modpost.c
index 09ffca54b37..3bed09e625c 100644
--- a/scripts/mod/modpost.c
+++ b/scripts/mod/modpost.c
@@ -370,6 +370,12 @@ handle_modversions(struct module *mod, struct elf_info *info,
/* Ignore register directives. */
if (ELF_ST_TYPE(sym->st_info) == STT_SPARC_REGISTER)
break;
+ if (symname[0] == '.') {
+ char *munged = strdup(symname);
+ munged[0] = '_';
+ munged[1] = toupper(munged[1]);
+ symname = munged;
+ }
}
#endif