GElf_Ehdr ehdr;
// check that header matches library version
- assert(elf_version(EV_CURRENT) != EV_NONE);
+ if (elf_version(EV_CURRENT) == EV_NONE)
+ panic("wrong elf version number!");
// get a pointer to elf structure
elf = elf_memory((char*)data,len);
GElf_Ehdr ehdr;
// check that header matches library version
- assert(elf_version(EV_CURRENT) != EV_NONE);
+ if (elf_version(EV_CURRENT) == EV_NONE)
+ panic("wrong elf version number!");
// get a pointer to elf structure
elf = elf_memory((char*)fileData,len);
return false;
// check that header matches library version
- assert(elf_version(EV_CURRENT) != EV_NONE);
+ if (elf_version(EV_CURRENT) == EV_NONE)
+ panic("wrong elf version number!");
// get a pointer to elf structure
elf = elf_memory((char*)fileData,len);