X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=scripts%2Fmod%2Ffile2alias.c;h=d1d0ae84dc8e2eddf949b0f04a82c93122128a5c;hb=refs%2Fheads%2Fpandora-3.2-cma2;hp=f936d1fa969d76e9f6b97cc584058e96ede5c061;hpb=994c0e992522c123298b4a91b72f5e67ba2d1123;p=pandora-kernel.git diff --git a/scripts/mod/file2alias.c b/scripts/mod/file2alias.c index f936d1fa969d..d1d0ae84dc8e 100644 --- a/scripts/mod/file2alias.c +++ b/scripts/mod/file2alias.c @@ -926,6 +926,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);