Skip to contentSkip to conversation

avoid a warning for each module on s390x

trivial Arnd Bergmann 1 participant 1 message Mar 3, 2003

lore
Share & tools
lore
#0 lore raw

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.

scripts/modpost.c +3 -0
@@ -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 */