X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=scripts%2Fmod%2Ffile2alias.c;h=f210eae9bd7ecd9b3b22d4016c8e7011b019fef2;hb=60cbc8c9108be5542b8b7b9e16231fdee062f6d9;hp=e26e2fb462d41808167ffa31cc4bb025fd583e2b;hpb=655402d41742cc8e490f4357745408d361bdd2d4;p=kernel%2Flinux-3.0.git diff --git a/scripts/mod/file2alias.c b/scripts/mod/file2alias.c index e26e2fb..f210eae 100644 --- a/scripts/mod/file2alias.c +++ b/scripts/mod/file2alias.c @@ -905,6 +905,10 @@ void handle_moddevtable(struct module *mod, struct elf_info *info, if (!sym->st_shndx || get_secindex(info, sym) >= info->num_sections) return; + /* We're looking for an object */ + if (ELF_ST_TYPE(sym->st_info) != STT_OBJECT) + return; + /* Handle all-NULL symbols allocated into .bss */ if (info->sechdrs[get_secindex(info, sym)].sh_type & SHT_NOBITS) { zeros = calloc(1, sym->st_size);