From 709c572cd41c1bc234597dc85d627c7c108b8fe5 Mon Sep 17 00:00:00 2001 From: Alan Cox Date: Thu, 31 Jul 2003 05:19:13 -0700 Subject: [PATCH] allow 2.6 to build on old old setups (Mikael Pettersson) --- scripts/modpost.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'scripts/modpost.c') diff --git a/scripts/modpost.c b/scripts/modpost.c index 13c33ccca090..05369df84c02 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) { -- cgit v1.2.3