[Bug tools/25077] unstrip bad handling of sh_entsize of the symver section

mark at klomp dot org sourceware-bugzilla@sourceware.org
Tue Oct 22 12:01:00 GMT 2019


--- Comment #3 from Mark Wielaard <mark at klomp dot org> ---
(In reply to leftcopy.chx from comment #2)
> Since this crashes occurs when calling `elf_update`, which resides in
> libelf, I suppose this is a libelf library issue.
> I'd suggest adding some documents to warn that it is the developers' duty to
> ensure that the claimed symver size matches with the actual one, or better
> resolves the size purely inside libelf code?

libelf would do the right thing if you use don't use elf_flagelf (outelf,
ELF_C_SET, ELF_F_LAYOUT) as eu-unstrip does. If you set ELF_F_LAYOUT you
promise to set up all ELF data fields correctly yourself and libelf just trusts
you when writing out the file.

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

More information about the Elfutils-devel mailing list