]> git.ipfire.org Git - thirdparty/elfutils.git/commit
unstrip: Don't try to write extra bogus versym data.
authorMark Wielaard <mark@klomp.org>
Sat, 19 Oct 2019 12:37:46 +0000 (14:37 +0200)
committerMark Wielaard <mark@klomp.org>
Sat, 26 Oct 2019 00:21:38 +0000 (02:21 +0200)
commitda5a32a400da6a03a96f0aff10aff2d86bd9baad
treea2b98076c343705fccbe4a9ff39c0442c5b40722
parent9d3003f6b0baa94a53013fbefb4f6542bc532a6c
unstrip: Don't try to write extra bogus versym data.

If the sh_entsize of the symver section was bogus (bigger than necessary)
then some bogus data would be written out (except that then fails because
pwrite would probably fail). Fix that by ignoring the bogus sh_entsize
and use the actual symver data size.

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

Signed-off-by: Mark Wielaard <mark@klomp.org>
src/ChangeLog
src/unstrip.c