3adda3ce2a83e2733aa0c84da9bb7949413d02fd |
|
29-Sep-2015 |
Mark Wielaard <mjw@redhat.com> |
libelf: Always update e_version and e_shentsize in elf_update. 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. Signed-off-by: Mark Wielaard <mjw@redhat.com>
/external/elfutils/tests/elfshphehdr.c
|