This is the mail archive of the elfutils-devel@sourceware.org mailing list for the elfutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]