diff options
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/Makefile | 2 | ||||
-rw-r--r-- | scripts/mod/file2alias.c | 4 |
2 files changed, 6 insertions, 0 deletions
diff --git a/scripts/Makefile b/scripts/Makefile index df7678febf27..36266665dbcb 100644 --- a/scripts/Makefile +++ b/scripts/Makefile | |||
@@ -8,6 +8,8 @@ | |||
8 | # conmakehash: Create arrays for initializing the kernel console tables | 8 | # conmakehash: Create arrays for initializing the kernel console tables |
9 | # docproc: Used in Documentation/DocBook | 9 | # docproc: Used in Documentation/DocBook |
10 | 10 | ||
11 | HOST_EXTRACFLAGS += -I$(srctree)/tools/include | ||
12 | |||
11 | hostprogs-$(CONFIG_KALLSYMS) += kallsyms | 13 | hostprogs-$(CONFIG_KALLSYMS) += kallsyms |
12 | hostprogs-$(CONFIG_LOGO) += pnmtologo | 14 | hostprogs-$(CONFIG_LOGO) += pnmtologo |
13 | hostprogs-$(CONFIG_VT) += conmakehash | 15 | hostprogs-$(CONFIG_VT) += conmakehash |
diff --git a/scripts/mod/file2alias.c b/scripts/mod/file2alias.c index 056de3104e75..5759751a1f61 100644 --- a/scripts/mod/file2alias.c +++ b/scripts/mod/file2alias.c | |||
@@ -1103,6 +1103,10 @@ void handle_moddevtable(struct module *mod, struct elf_info *info, | |||
1103 | if (!sym->st_shndx || get_secindex(info, sym) >= info->num_sections) | 1103 | if (!sym->st_shndx || get_secindex(info, sym) >= info->num_sections) |
1104 | return; | 1104 | return; |
1105 | 1105 | ||
1106 | /* We're looking for an object */ | ||
1107 | if (ELF_ST_TYPE(sym->st_info) != STT_OBJECT) | ||
1108 | return; | ||
1109 | |||
1106 | /* All our symbols are of form <prefix>__mod_XXX_device_table. */ | 1110 | /* All our symbols are of form <prefix>__mod_XXX_device_table. */ |
1107 | name = strstr(symname, "__mod_"); | 1111 | name = strstr(symname, "__mod_"); |
1108 | if (!name) | 1112 | if (!name) |