diff options
author | Mark Wielaard <mjw@redhat.com> | 2015-09-29 17:04:11 +0200 |
---|---|---|
committer | Mark Wielaard <mjw@redhat.com> | 2015-10-05 21:50:51 +0200 |
commit | 3adda3ce2a83e2733aa0c84da9bb7949413d02fd (patch) | |
tree | 058bc279d05d01de93eac34fdc7705d720f865e2 /tests/Makefile.am | |
parent | a3a76e361527b057fc4cf8a8a8ce97a33dd59198 (diff) | |
download | android_external_elfutils-3adda3ce2a83e2733aa0c84da9bb7949413d02fd.tar.gz android_external_elfutils-3adda3ce2a83e2733aa0c84da9bb7949413d02fd.tar.bz2 android_external_elfutils-3adda3ce2a83e2733aa0c84da9bb7949413d02fd.zip |
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>
Diffstat (limited to 'tests/Makefile.am')
-rw-r--r-- | tests/Makefile.am | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/tests/Makefile.am b/tests/Makefile.am index ca2c2d79..eaa904cd 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -51,7 +51,8 @@ check_PROGRAMS = arextract arsymtest newfile saridx scnnames sectiondump \ dwfl-report-elf-align varlocs backtrace backtrace-child \ backtrace-data backtrace-dwarf debuglink debugaltlink \ buildid deleted deleted-lib.so aggregate_size vdsosyms \ - getsrc_die strptr newdata elfstrtab dwfl-proc-attach + getsrc_die strptr newdata elfstrtab dwfl-proc-attach \ + elfshphehdr asm_TESTS = asm-tst1 asm-tst2 asm-tst3 asm-tst4 asm-tst5 \ asm-tst6 asm-tst7 asm-tst8 asm-tst9 @@ -118,7 +119,8 @@ TESTS = run-arextract.sh run-arsymtest.sh newfile test-nlist \ run-stack-demangled-test.sh \ run-readelf-dwz-multi.sh run-allfcts-multi.sh run-deleted.sh \ run-linkmap-cut.sh run-aggregate-size.sh vdsosyms run-readelf-A.sh \ - run-getsrc-die.sh run-strptr.sh newdata elfstrtab dwfl-proc-attach + run-getsrc-die.sh run-strptr.sh newdata elfstrtab dwfl-proc-attach \ + elfshphehdr if !BIARCH export ELFUTILS_DISABLE_BIARCH = 1 @@ -448,6 +450,7 @@ newdata_LDADD = $(libelf) elfstrtab_LDADD = $(libelf) dwfl_proc_attach_LDADD = $(libdw) dwfl_proc_attach_LDFLAGS = -pthread +elfshphehdr_LDADD =$(libelf) if GCOV check: check-am coverage |