https://sourceware.org/bugzilla/show_bug.cgi?id=31059

Mark Wielaard <mark at klomp dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
                 CC|                            |mark at klomp dot org
         Resolution|---                         |NOTABUG

--- Comment #1 from Mark Wielaard <mark at klomp dot org> ---
This is impossible unless you mix different versions of the elfutils modules.
The eu-readelf -a works fine with elfutils (libelf and tools) from 0.190.

The code is:

  size_t sh_entsize = gelf_fsize (ebl->elf, ELF_T_RELR, 1, EV_CURRENT);
  int nentries = shdr->sh_size / sh_entsize;

sh_entsize is a constant value and gelf_fsize cannot return zero unless
ebl->elf is NULL (which we know at this point it isn't).

You are probably mixing readelf from elfutils 0.190 with some old < 0.190
libelf. That isn't supported. All elfutils components need to be the same
version.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

Reply via email to