Commit 28d6bf36 authored by Arnd Bergmann's avatar Arnd Bergmann Committed by Kai Germaschewski

[trivial] avoid a warning for each module on s390x

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.
parent f6970811
...@@ -293,6 +293,9 @@ handle_modversions(struct module *mod, struct elf_info *info, ...@@ -293,6 +293,9 @@ handle_modversions(struct module *mod, struct elf_info *info,
/* undefined symbol */ /* undefined symbol */
if (ELF_ST_BIND(sym->st_info) != STB_GLOBAL) if (ELF_ST_BIND(sym->st_info) != STB_GLOBAL)
break; break;
/* ignore global offset table */
if (strcmp(symname, "_GLOBAL_OFFSET_TABLE_") == 0)
break;
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