Commit 709c572c authored by Alan Cox's avatar Alan Cox Committed by Linus Torvalds

[PATCH] allow 2.6 to build on old old setups

(Mikael Pettersson)
parent f907df50
...@@ -296,12 +296,14 @@ handle_modversions(struct module *mod, struct elf_info *info, ...@@ -296,12 +296,14 @@ handle_modversions(struct module *mod, struct elf_info *info,
/* ignore global offset table */ /* ignore global offset table */
if (strcmp(symname, "_GLOBAL_OFFSET_TABLE_") == 0) if (strcmp(symname, "_GLOBAL_OFFSET_TABLE_") == 0)
break; break;
#ifdef STT_REGISTER
if (info->hdr->e_machine == EM_SPARC || if (info->hdr->e_machine == EM_SPARC ||
info->hdr->e_machine == EM_SPARCV9) { info->hdr->e_machine == EM_SPARCV9) {
/* Ignore register directives. */ /* Ignore register directives. */
if (ELF_ST_TYPE(sym->st_info) == STT_REGISTER) if (ELF_ST_TYPE(sym->st_info) == STT_REGISTER)
break; break;
} }
#endif
if (memcmp(symname, MODULE_SYMBOL_PREFIX, if (memcmp(symname, MODULE_SYMBOL_PREFIX,
strlen(MODULE_SYMBOL_PREFIX)) == 0) { strlen(MODULE_SYMBOL_PREFIX)) == 0) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment