PATCH: allow 2.6 to build on old old setups

From: Alan Cox (alan@lxorguk.ukuu.org.uk)
Date: Sun Jul 27 2003 - 15:26:36 EST


(Mikael Pettersson)
diff -u --new-file --recursive --exclude-from /usr/src/exclude linux-2.6.0-test2/scripts/modpost.c linux-2.6.0-test2-ac1/scripts/modpost.c
--- linux-2.6.0-test2/scripts/modpost.c 2003-07-10 21:05:39.000000000 +0100
+++ linux-2.6.0-test2-ac1/scripts/modpost.c 2003-07-23 15:37:13.000000000 +0100
@@ -296,12 +296,14 @@
                 /* 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) {

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Thu Jul 31 2003 - 22:00:33 EST