projects
/
centaur.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
13880cb
)
Remove assertion that breaks with Red Hat's libelf
morephdr
author
norly
<ny-git@enpas.org>
Mon, 24 Jun 2013 03:16:05 +0000
(
04:16
+0100)
committer
norly
<ny-git@enpas.org>
Mon, 24 Jun 2013 03:16:53 +0000
(
04:16
+0100)
src/libelfu/modelops/fromFile.c
patch
|
blob
|
history
diff --git
a/src/libelfu/modelops/fromFile.c
b/src/libelfu/modelops/fromFile.c
index 3443165f473801176a0b5bee84c44f936163d032..2b47be029fcce1099bc2f637ec1990340ab0ebd9 100644
(file)
--- 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");