Remove assertion that breaks with Red Hat's libelf morephdr
authornorly <ny-git@enpas.org>
Mon, 24 Jun 2013 03:16:05 +0000 (04:16 +0100)
committernorly <ny-git@enpas.org>
Mon, 24 Jun 2013 03:16:53 +0000 (04:16 +0100)
src/libelfu/modelops/fromFile.c

index 3443165f473801176a0b5bee84c44f936163d032..2b47be029fcce1099bc2f637ec1990340ab0ebd9 100644 (file)
@@ -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");