diff options
author | Alan Cox <alan@lxorguk.ukuu.org.uk> | 2003-07-31 05:19:13 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@home.osdl.org> | 2003-07-31 05:19:13 -0700 |
commit | 709c572cd41c1bc234597dc85d627c7c108b8fe5 (patch) | |
tree | 806310d11d1a7556bb589139ac901d8ff7998aca /scripts | |
parent | f907df50eef001a7d51a76118a0451e9e667b847 (diff) | |
download | history-709c572cd41c1bc234597dc85d627c7c108b8fe5.tar.gz |
[PATCH] allow 2.6 to build on old old setups
(Mikael Pettersson)
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/modpost.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/scripts/modpost.c b/scripts/modpost.c index 13c33ccca090e5..05369df84c02ea 100644 --- a/scripts/modpost.c +++ b/scripts/modpost.c @@ -296,12 +296,14 @@ handle_modversions(struct module *mod, struct elf_info *info, /* ignore global offset table */ if (strcmp(symname, "_GLOBAL_OFFSET_TABLE_") == 0) break; +#ifdef STT_REGISTER if (info->hdr->e_machine == EM_SPARC || info->hdr->e_machine == EM_SPARCV9) { /* Ignore register directives. */ if (ELF_ST_TYPE(sym->st_info) == STT_REGISTER) break; } +#endif if (memcmp(symname, MODULE_SYMBOL_PREFIX, strlen(MODULE_SYMBOL_PREFIX)) == 0) { |