From: norly Date: Mon, 24 Jun 2013 03:16:05 +0000 (+0100) Subject: Remove assertion that breaks with Red Hat's libelf X-Git-Url: https://git.enpas.org/?p=centaur.git;a=commitdiff_plain;h=aed0b96a86dd43852cf92897c9573c5640c21af4 Remove assertion that breaks with Red Hat's libelf --- diff --git a/src/libelfu/modelops/fromFile.c b/src/libelfu/modelops/fromFile.c index 3443165..2b47be0 100644 --- a/src/libelfu/modelops/fromFile.c +++ b/src/libelfu/modelops/fromFile.c @@ -252,9 +252,6 @@ static ElfuScn* modelFromSection(Elf_Scn *scn) data = elf_rawdata(scn, NULL); assert(data); - /* elf_rawdata() always returns ELF_T_BYTE */ - assert(data->d_type == ELF_T_BYTE); - while (data) { if (data->d_off + data->d_size > ms->shdr.sh_size) { ELFU_WARN("modelFromSection: libelf delivered a bogus data blob. Skipping\n");