X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?p=pandora-kernel.git;a=blobdiff_plain;f=scripts%2Fmod%2Ffile2alias.c;h=d1d0ae84dc8e2eddf949b0f04a82c93122128a5c;hp=f936d1fa969d76e9f6b97cc584058e96ede5c061;hb=c2ea42542f001d57d32cf5c0300e31fb4af3f610;hpb=aed107521ffe75c69f5fb6e77e7bbbadbbcc7cea 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);