diff options
| author | David S. Miller <davem@nuts.davemloft.net> | 2004-03-30 20:12:37 -0800 |
|---|---|---|
| committer | David S. Miller <davem@nuts.davemloft.net> | 2004-03-30 20:12:37 -0800 |
| commit | 57cafcc84313480b9c699265524ad56e80a2d5cc (patch) | |
| tree | 0ca2f70442295ac61674c345d0d964d28a6ecc5a /scripts | |
| parent | f96599ee05ed34052c19fc680b20329c69680ea6 (diff) | |
| parent | f756a8b341ad2d6dd4076890f18c234d3f2e697b (diff) | |
Merge bk://kernel.bkbits.net/wesolows/sparc32-2.6
into nuts.davemloft.net:/disk1/BK/sparc-2.6
Diffstat (limited to 'scripts')
| -rw-r--r-- | scripts/modpost.c | 16 |
1 files changed, 2 insertions, 14 deletions
diff --git a/scripts/modpost.c b/scripts/modpost.c index 6f5848592669..a0976fcb9982 100644 --- a/scripts/modpost.c +++ b/scripts/modpost.c @@ -141,26 +141,14 @@ new_symbol(const char *name, struct module *module, unsigned int *crc) symbolhash[hash] = new; } -#define DOTSYM_PFX "__dot_" - struct symbol * find_symbol(const char *name) { struct symbol *s; - char dotname[64 + sizeof(DOTSYM_PFX)]; - /* .foo matches foo. PPC64 needs this. */ - if (name[0] == '.') { + /* For our purposes, .foo matches foo. PPC64 needs this. */ + if (name[0] == '.') name++; - strcpy(dotname, DOTSYM_PFX); - strncat(dotname, name, sizeof(dotname) - sizeof(DOTSYM_PFX) - 1); - dotname[sizeof(dotname)-1] = 0; - /* Sparc32 wants .foo to match __dot_foo, try this first. */ - for (s = symbolhash[tdb_hash(dotname) % SYMBOL_HASH_SIZE]; s; s=s->next) { - if (strcmp(s->name, dotname) == 0) - return s; - } - } for (s = symbolhash[tdb_hash(name) % SYMBOL_HASH_SIZE]; s; s=s->next) { if (strcmp(s->name, name) == 0) |
