This is the mail archive of the
elfutils-devel@sourceware.org
mailing list for the elfutils project.
Re: [PATCH] libelf: Always update e_version and e_shentsize in elf_update.
- From: Mark Wielaard <mjw at redhat dot com>
- To: elfutils-devel at lists dot fedorahosted dot org
- Date: Mon, 05 Oct 2015 21:53:17 +0200
- Subject: Re: [PATCH] libelf: Always update e_version and e_shentsize in elf_update.
On Tue, Sep 29, 2015 at 05:13:30PM +0200, Mark Wielaard wrote:
> When e_version is EV_NONE we should set it to EV_CURRENT like we do for
> the EI_VERSION and like we set EI_DATA to the correct byte order when set
> to ELFDATANONE. Likewise we should always set e_shentsize like we do for
> e_phentsize, not just when ELF_F_LAYOUT isn't set.
>
> Add a new elfshphehdr testcase to check the above.
I pushed this to master.