summaryrefslogtreecommitdiff
path: root/scripts/modpost.c
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/modpost.c')
-rw-r--r--scripts/modpost.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/scripts/modpost.c b/scripts/modpost.c
index 8e37d8776bfe..2d19dcdafd60 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) {