From 28d6bf36c47b66b8b1d353fac6560649b45a6a57 Mon Sep 17 00:00:00 2001 From: Arnd Bergmann Date: Wed, 5 Mar 2003 08:07:18 -0600 Subject: [PATCH] [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. --- scripts/modpost.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/modpost.c b/scripts/modpost.c index 8e37d8776bfea..2d19dcdafd608 100644 --- a/scripts/modpost.c +++ b/scripts/modpost.c @@ -293,6 +293,9 @@ handle_modversions(struct module *mod, struct elf_info *info, /* undefined symbol */ if (ELF_ST_BIND(sym->st_info) != STB_GLOBAL) break; + /* ignore global offset table */ + if (strcmp(symname, "_GLOBAL_OFFSET_TABLE_") == 0) + break; if (memcmp(symname, MODULE_SYMBOL_PREFIX, strlen(MODULE_SYMBOL_PREFIX)) == 0) { -- 2.53.0