[trivial] avoid a warning for each module on s390x

From: Arnd Bergmann (arnd@arndb.de)
Date: Mon Mar 03 2003 - 18:08:04 EST


s390x has a reference to _GLOBAL_OFFSET_TABLE_ in each module
that is resolved by the module loader. This patch prevents
modpost from emitting a warning about that symbol.

--- linux-2.5.63/scripts/modpost.c Tue Feb 18 18:41:54 2003
+++ linux-s390x/scripts/modpost.c Mon Feb 24 22:42:01 2003
@@ -289,6 +289,9 @@
                 /* undefined symbol */
                 if (ELF_ST_BIND(sym->st_info) != STB_GLOBAL)
                         break;
+ /* ignore global offset table */
+ if (strcmp(symname, "_GLOBAL_OFFSET_TABLE_") == 0)
+ break;
                 
                 s = alloc_symbol(symname);
                 /* add to list */
-
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 : Fri Mar 07 2003 - 22:00:23 EST