rem: memset(elfobj,sizeof(struct ElfObject),0);
add: memset(elfobj,0,sizeof(struct ElfObject));
context: ELFLoadObject( const char* objname ){  struct ElfObject *elfobj = NULL;  /* allocate ElfObject structure */  elfobj = alloc32( sizeof( struct ElfObject ) );  if( elfobj != NULL )  {    memset(elfobj,sizeof(struct ElfObject),0);    elfobj->header = alloc32( sizeof( struct Elf32_Ehdr ) );    if( elfobj->header != NULL )    {      /* open ELF stream for reading */      elfobj->handle = opstream( elfobj, objname );      if( elfobj->handle != NULL )      {        /* read and identify ELF 32bit PowerPC BigEndian header */        if( rdstream( elfobj, elfobj->header, sizeof(struct Elf32_Ehdr) ) )        {          struct Elf32_Ehdr *hdr = elfobj->header;          if (!strncmp(hdr->e_ident,ELFid,4) &&              hdr->e_ident[EI_CLASS]==ELFCLASS32 &&              hdr->e_ident[EI_DATA]==ELFDATA2MSB &&              hdr->e_ident[EI_VERSION]==1 && hdr->e_version==1 &&              (hdr->e_machine==EM_PPC || hdr->e_machine==EM_PPC_OLD ||               hdr->e_machine==EM_CYGNUS_POWERPC) && hdr->e_type==ET_REL)          {            struct Elf32_Shdr *shdrs;            ULONG shdrsize = (ULONG) hdr->e_shnum * (ULONG) hdr->e_shentsize;            kprintf("elf32ppcbe format recognized\n");            shdrs = alloc32( shdrsize );            if( shdrs != NULL )            {              /* read section header table and parse rest of object */              if( prstream( elfobj, hdr->e_shoff, shdrs, shdrsize ) )              {                if( loadelf32( elfobj, shdrs ) )                {                  kprintf("ELF object loaded (0x%08lx)\n", elfobj );                  free32( shdrs );                  return (elfobj);                }              }              free32( shdrs );            }          }          else            kprintf( "Not an ELF32-PPC-BE\nrelocatable object.");        }      }      freeelfobj(elfobj);    }  }  return (NULL);}