Re: [PATCH] libelf: Mark shdr_flags dirty if offset or size changes during update.

2019-05-16 Thread Mark Wielaard
On Mon, 2019-05-13 at 00:13 +0200, Mark Wielaard wrote: > We forgot to mark the shdr_flags dirty when only the sh_size or > sh_offset changed during elf_update (). This meant that if there were > no other shdr changes we only wrote out the section data, but didn't > write out the shdr table to the

[PATCH] libelf: Mark shdr_flags dirty if offset or size changes during update.

2019-05-12 Thread Mark Wielaard
We forgot to mark the shdr_flags dirty when only the sh_size or sh_offset changed during elf_update (). This meant that if there were no other shdr changes we only wrote out the section data, but didn't write out the shdr table to the file. Add a testcase that puts some sections in the reverse ord