]> git.ipfire.org Git - thirdparty/elfutils.git/commit
unstrip: update unstripped_shnum when adding a new section
authorMark Wielaard <mark@klomp.org>
Tue, 3 Jun 2025 12:06:36 +0000 (14:06 +0200)
committerMark Wielaard <mark@klomp.org>
Tue, 3 Jun 2025 12:06:41 +0000 (14:06 +0200)
commit838c7cc03e4193df6d3089655d5a2ddd3efabd0b
tree529b571acd602f590898fcbb893a4cff3aef2ed8
parent07bd923cea4b883ca2357e9fc80babcedd242b37
unstrip: update unstripped_shnum when adding a new section

If some section doesn't match between the stripped and unstripped file
we invent a new one. Make sure to also update the shnum value.

   * src/unstrip.c (copy_elided_sections): Update unstripped_shnum.

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