libdwfl: Fix and test aux_sym address_sync with relocated ELF
[platform/upstream/elfutils.git] / tests / ChangeLog
index abc7340..9a8ac61 100644 (file)
@@ -1,3 +1,483 @@
+2013-11-18  Josh Stone  <jistone@redhat.com>
+
+       * testfilebazdbg_plr.bz2: New testfile.
+       * testfilebazmin_plr.bz2: Likewise.
+       * Makefile.am (EXTRA_DIST): Add the above files.
+       * run-dwflsyms.sh: Add prelink -r tests.
+
+2013-11-15  Mark Wielaard  <mjw@redhat.com>
+
+       * testfilebazmdb.bz2: Regenerated.
+       * testfilebazmin.bz2: Likewise.
+       * testfilebazdbg_pl.bz2: New testfile.
+       * testfilebazmin_pl.bz2: Likewise.
+       * Makefile.am (EXTRA_DIST): Add testfilebazdbg_pl.bz2 and
+       testfilebazmin_pl.bz2.
+       * dwflsyms.c (list_syms): Call dwfl_module_relocate_address and
+       print relative address of function symbols.
+       * run-dwflsyms.sh: Add prelink tests and adjust expected output.
+
+2013-11-01  Michael Forney  <mforney@mforney.org>
+
+       * Makefile.am (TESTS_ENVIRONMENT): Use and export NM.
+       * run-arsymtest.sh: Use NM.
+
+2013-11-05  Mark Wielaard  <mjw@redhat.com>
+
+       * allfcts.c (main): Correct dwarf_getfuncs return value check.
+
+2013-10-10  Mark Wielaard  <mjw@redhat.com>
+           Josh Stone  <jistone@redhat.com>
+
+       * run-allfcts-multi.sh: New test.
+       * test-offset-loop.bz2: New testfile.
+       * test-offset-loop.alt.bz2: New testfile.
+       * Makefile.am (TESTS): Add run-allcft-multi.sh if ENABLE_DWZ.
+       (EXTRA_DIST): Add run-allfcts-multi.sh, test-offset-loop.bz2 and
+       test-offset-loop.alt.bz2.
+
+2013-10-15  Mark Wielaard  <mjw@redhat.com>
+
+       * run-unstrip-M.sh: New test.
+       * Makefile.am (TESTS): Add run-unstrip-M.sh.
+       (EXTRA_DIST): Likewise.
+
+2013-10-06  Mark Wielaard  <mjw@redhat.com>
+
+       * run-addrcfi.sh: Remove nop from expected ppc and ppc64
+       location expression.
+
+2013-10-03  Josh Stone  <jistone@redhat.com>
+
+       * typeiter2.c: New file, reversing typeiter.c.
+       * run-typeiter.sh: Also run typeiter2.
+       * Makefile.am (check_PROGRAMS): Add typeiter2.
+       (typeiter2_LDADD): New variable.
+
+2013-09-26  Petr Machata  <pmachata@redhat.com>
+
+       * run-readelf-mixed-corenote.sh: Update output of testfile71
+       dump--readelf can newly decode the NT_FILE note.
+
+2013-09-26  Petr Machata  <pmachata@redhat.com>
+
+       * Makefile.am (EXTRA_DIST): Add testfile71.bz2.
+       * run-readelf-mixed-corenote.sh: New test for this file.
+       * testfile71.bz2: New file.
+
+2013-09-20  Mark Wielaard  <mjw@redhat.com>
+
+       * allfcts.c (cb): Return DWARF_CB_ABORT.
+       (main): Iterate over all offsets returned by dwarf_getfuncs.
+       * run-allfcts.sh: Add nested_funcs and class_func testcases.
+       * testfile_nested_funcs.bz2: New test file.
+       * testfile_class_func.bz2: Likewise.
+       * Makefile.am (EXTRA_DIST): Add testfile_class_func.bz2 and
+       testfile_nested_funcs.bz2.
+
+2013-08-30  Mark Wielaard  <mjw@redhat.com>
+
+       * Makefile.am (check_PROGRAMS): Add varlocs.
+       (TESTS): Add run-varlocs.sh.
+       (EXTRA_DIST): Add run-varlocs.sh, testfile_const_type.c,
+       testfile_const_type.bz2, testfile_implicit_pointer.c,
+       testfile_implicit_pointer.bz2, testfile_parameter_ref.c,
+       testfile_entry_value.c, testfile_entry_value.bz2,
+       testfile_implicit_value.c and testfile_implicit_value.bz2.
+       (varlocs_LDADD): New.
+       * run-varlocs: New test.
+       * testfile_const_type.c: New test source file.
+       * testfile_entry_value.c: Likewise.
+       * testfile_implicit_pointer.c: Likewise.
+       * testfile_implicit_value.c: Likewise.
+       * testfile_parameter_ref.c: Likewise.
+       * testfile_const_type.bz2: New test file.
+       * testfile_entry_value.bz2: Likewise.
+       * testfile_implicit_pointer.bz2: Likewise.
+       * testfile_implicit_value.bz2: Likewise.
+       * testfile_parameter_ref.bz2: Likewise.
+       * varlocs.c: New test source.
+
+2013-08-29  Mark Wielaard  <mjw@redhat.com>
+
+       * run-addrcfi.sh: Add case for EM_ARM.
+       * testfilearm.bz2: New testfile.
+       * Makefile.am (EXTRA_DIST): Add testfilesarm.bz2.
+
+2013-08-28  Mark Wielaard  <mjw@redhat.com>
+
+       * addrcfi.c (handle_cfi): Handle .debug_frame or .eh_frame
+       completely missing.
+       * run-addrcfi.sh: Add case for EM_S390 ELFCLASS32 and ELFCLASS64.
+       * testfiles390.bz2: New testfile.
+       * testfiles390x.bz2: Likewise.
+       * Makefile.am (EXTRA_DIST): Add testfiles390.bz2 and
+       testfiles390x.bz2.
+
+2013-08-28  Mark Wielaard  <mjw@redhat.com>
+
+       * addrcfi.c (handle_cfi): Use printf not error.
+       * run-addrcfi.sh: Add case for EM_PPC and EM_PPC64.
+       * testfileppc32.bz2: New testfile.
+       * testfileppc64.bz2: Likewise.
+       * Makefile.am (EXTRA_DIST): Add testfileppc32.bz2 and
+       testfileppc64.bz2.
+
+2013-08-27  Mark Wielaard  <mjw@redhat.com>
+
+       * run-addrcfi.sh: New test.
+       * Makefile.am (TESTS): Add run-addrcfi.sh.
+       (EXTRA_DIST): Likewise.
+       * addrcfi.c (op_name): New function.
+       (print_detail): Call and print op_name. Check ops, not result
+       to check if this is "same value" or "undefined".
+       (handle_cfi): Make sure cfa_ops doesn't point to NULL.
+
+2013-08-13  Mark Wielaard  <mjw@redhat.com>
+
+       * run-addr2line-i-test.sh: New test.
+       * testfile-inlines.bz2: New testfile.
+       * Makefile.am (EXTRA_DIST): Add run-addr2line-i-test.sh and
+       testfile-inlines.bz2.
+       (TESTS): Add run-addr2line-i-test.sh.
+
+2013-08-12  Mark Wielaard  <mjw@redhat.com>
+
+       * run-addr2line-test.sh: New test.
+       * Makefile.am (EXTRA_DIST): Add run-addr2line-test.sh.
+       (TESTS): Likewise.
+
+2013-07-23  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+       * run-unstrip-n.sh (test-core.*): Ignore libc.so.6 entry and order of
+       the entries.
+
+2013-07-02  Mark Wielaard  <mjw@redhat.com>
+
+       * Makefile.am (EXTRA_DIST): Fix typo, forgot extension in
+       testfilenolines.bz2.
+
+2013-05-30  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+       * Makefile.am (EXTRA_DIST): Add test-core-lib.so.bz2,
+       test-core.core.bz2 and test-core.exec.bz2.
+       * run-addrname-test.sh: New test for these files.
+       * run-unstrip-n.sh: Update expected output.  New test for these files.
+       * test-core-lib.so.bz2: New file.
+       * test-core.core.bz2: New file.
+       * test-core.exec.bz2: New file.
+
+2013-05-03  Mark Wielaard  <mjw@redhat.com>
+
+       * testfilenolines.bz2: New test file.
+       * Makefile.am (EXTRA_DIST): Add testfilenolines.bz2.
+       * run-get-lines.sh: Run testrun_compare on testfilenolines.
+
+2013-04-30  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+       * dwfl-report-elf-align.c: Use false add_p_vaddr for dwfl_report_elf.
+
+2013-04-29  Mark Wielaard  <mjw@redhat.com>
+
+       * test-subr.sh: Don't use pushd, just cd into test-dir.
+       (exit_cleanup): Don't use popd, just cd .. to get out.
+
+2013-04-27  Mark Wielaard  <mjw@redhat.com>
+
+       * test-subr.sh (exit_cleanup): New function.
+       (trap): Use exit_cleanup as argument.
+       * run-native-test.sh (native_exit): New function.
+       (trap): For EXIT (0) use native_exit as argument.
+
+2013-04-27  Mark Wielaard  <mjw@redhat.com>
+
+       * update1.c (main): Use unique tempfile name and unlink file.
+       * update2.c (main): Likewise.
+       * update3.c (main): Likewise.
+       * update4.c (main): Use unique tempfile name.
+
+2013-04-27  Mark Wielaard  <mjw@redhat.com>
+
+       * run-alldts.sh: Add testfile-alldts to tempfiles.
+       * run-elf_cntl_gelf_getshdr.sh: Add test_shdr.out to tempfiles.
+       * run-macro-test.sh: Add readelf.macros.out to tempfiles.
+       * run-strip-reloc.sh: Add readelf.out, readelf.out1, readelf.out2
+       and out.stripped1, out.debug1, out.stripped2, out.debug2 to tempfiles.
+
+2013-04-26  Mark Wielaard  <mjw@redhat.com>
+
+       * Makefile.am (installed_TESTS_ENVIRONMENT): Export environment,
+       remove wrapper.
+       (TESTS_ENVIRONMENT): Likewise.
+       (installed_LOG_COMPILER): New variable defining wrapper.
+       (LOG_COMPILER): Likewise.
+       * run-*.sh: Fixup location of input and output files.
+       * test-subr.sh: Create test_dir, pushd to execute test in.
+       (trap): Remove test_dir.
+       (testfiles): Use abs_srcdir.
+       (installed_testrun): Match on abs_builddir or abs_top_builddir.
+       (self_test_files): Adjust path.
+
+2013-04-24  Mark Wielaard  <mjw@redhat.com>
+
+       * Makefile.am: Use AM_CPPFLAGS instead of INCLUDES.
+
+2013-03-25  Mark Wielaard  <mjw@redhat.com>
+
+       * run-readelf-aranges.sh: New test.
+       * testfilefoobarbaz.bz2: New test file.
+       * Makefile.am (TESTS): Add run-readelf-aranges.sh.
+       (EXTRA_DIST): Add run-readelf-aranges.sh and testfilefoobarbaz.bz2.
+
+2013-03-25  Mark Wielaard  <mjw@redhat.com>
+
+       * run-readelf-dwz-multi.sh: Expect high_pc also as address.
+
+2013-03-20  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+       * Makefile.am (check_PROGRAMS): Add dwfl-report-elf-align.
+       (TESTS): Add run-dwfl-report-elf-align.sh.
+       (EXTRA_DIST): Add run-dwfl-report-elf-align.sh and
+       testfile-dwfl-report-elf-align-shlib.so.bz2 .
+       (dwfl_report_elf_align_LDADD): New.
+       * dwfl-report-elf-align.c: New file.
+       * run-dwfl-report-elf-align.sh: New file.
+       * testfile-dwfl-report-elf-align-shlib.so.bz2: New file.
+
+2013-03-12  Mark Wielaard  <mjw@redhat.com>
+
+       * run-dwfllines.sh: New test.
+       * dwfllines.c: New test program.
+       * Makefile.am (TESTS): Add run-dwfllines.sh.
+       (EXTRA_DIST): Likewise.
+       (dwfllines_LDADD): New variable.
+
+2013-02-22  Mark Wielaard  <mjw@redhat.com>
+
+       * Makefile.am (TESTS): Remove run-readelf-s.sh and run-dwflsyms.sh.
+       (LZMA): Add run-readelf-s.sh and run-dwflsyms.sh to TESTS.
+
+2013-02-15  Mark Wielaard  <mjw@redhat.com>
+
+       * testfile-dwzstr.bz2: New testfile.
+       * testfile-dwzstr.multi.bz2: Likewise.
+       * run-readelf-dwz-multi.sh: Add readelf testfile-dwzstr test.
+       * Makefile.am (EXTRA_DIST): Add testfile-dwzstr.bz2 and
+       testfile-dwzstr.multi.bz2.
+
+2013-01-30  Mark Wielaard  <mjw@redhat.com>
+
+       * testfileloc.bz2: New testfile.
+       * run-readelf-loc.sh: New test.
+       * Makefile.am (TESTS): Add run-readelf-loc.sh.
+       (EXTRA_DIST): Add run-readelf-loc.sh and testfileloc.bz2.
+
+2013-01-29  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+       * run-readelf-mixed-corenote.sh: New testcase for readelf -n of s390
+       and s390x core notes.
+       * testfile67.bz2: New file.
+       * testfile68.bz2: New file.
+       * Makefile.am (EXTRA_DIST): Add testfile67.bz2 and testfile68.bz2 .
+
+2013-01-23  Mark Wielaard  <mjw@redhat.com>
+
+       * testfilebasmin.bz2: New testfile.
+       * Makefile.am (EXTRA_DIST): Add testfilebasmin.bz2.
+       * run-readelf-s.sh: Test testfilebasmin.
+       * run-dwflsyms.sh: Likewise.
+
+2013-01-16  Mark Wielaard  <mjw@redhat.com>
+
+       * Makefile.am (check_PROGRAMS): Add dwflsyms.
+       (TESTS): Add run-readelf-s.sh and run-dwflsyms.sh.
+       (EXTRA_DIST): Add run-readelf-s.sh, testfilebazdbg.bz2,
+       testfilebazdyn.bz2, testfilebazmin.bz2, testfilebazdbg.debug.bz2,
+       testfilebazmdb.bz2, testfilebaztab.bz2 and run-dwflsyms.sh.
+       (dwflsyms_LDADD): New variable.
+
+2013-01-07  Roland McGrath  <roland@hack.frob.com>
+
+       * run-prelink-addr-test.sh: Use ln -snf.
+
+2012-12-03  Mark Wielaard  <mjw@redhat.com>
+
+       * Makefile.am (valgrind_cmd): Add --run-libc-freeres=no.
+
+2012-11-29  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+       * run-addrname-test.sh: New test for PIE relocation.
+       * testfile70.core.bz2: New file.
+       * testfile70.exec.bz2: New file.
+       * Makefile.am (EXTRA_DIST): Add testfile70.core.bz2 and
+       testfile70.exec.bz2 .
+
+2012-10-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+       * Makefile.am (EXTRA_DIST): Add testfile64.bz2, testfile65.bz2,
+       testfile69.core.bz2 and testfile69.so.bz2 .
+
+2012-10-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+       * run-addrname-test.sh: New test for DSO with build-id bias.
+       * testfile69.core.bz2: New file.
+       * testfile69.so.bz2: New file.
+
+2012-10-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+       * run-addrname-test.sh: New test for core vDSO bias.
+       * testfile65.bz2: New file.
+
+2012-10-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+       * run-addrname-test.sh: New test for symbol preferences.
+       * testfile64.bz2: New file.
+
+2012-10-01  Mark Wielaard  <mjw@redhat.com>
+
+       * Makefile.am (TESTS_ENVIRONMENT): Define valgrind_cmd if USE_VALGRIND.
+       * test-wrapper.sh: Export VALGRIND_CMD if available.
+       * test-subr.sh (built_testrun): Use VALGRIND_CMD to invoke test prog.
+       (installed_testrun): Likewise.
+
+2012-09-24  Petr Machata  <pmachata@redhat.com>
+
+       * testfile63.bz2: New testfile.
+       * run-readelf-mixed-corenote.sh: New test.
+       * Makefile.am (TEST): Add run-readelf-mixed-corenote.sh.
+       (EXTRA_DIST): Add testfile63.bz2 and run-readelf-mixed-corenote.sh.
+
+2012-09-24  Petr Machata  <pmachata@redhat.com>
+
+       * testfile62.bz2: New testfile.
+       * run-readelf-vmcoreinfo.sh: New test.
+       * Makefile.am (TEST): Add run-readelf-vmcoreinfo.sh.
+       (EXTRA_DIST): Add testfile62.bz2 and run-readelf-vmcoreinfo.sh.
+
+2012-09-18  Petr Machata  <pmachata@redhat.com>
+
+       * testfile61.bz2: New testfile.
+       * run-allregs.sh: Run reg_test testfile61.
+       * Makefile.am (EXTRA_DIST): Add testfile61.bz2.
+
+2012-08-24  Mark Wielaard  <mjw@redhat.com>
+
+       * Makefile.am (EXTRA_DIST): Add testfile60.bz2.
+
+2012-08-22  Jeff Kenton  <jkenton@tilera.com>
+
+       * testfile60.bz2: New testfile.
+       * run-allregs.sh: Run reg_test testfile60.
+
+2012-08-24  Mark Wielaard  <mjw@redhat.com>
+
+       * Makefile.am (TESTS): Only add run-readelf-dwz-multi.sh if
+       ENABLE_DWZ.
+
+2012-08-16  Mark Wielaard  <mjw@redhat.com>
+
+       * allregs.c (dwarf_encoding_string): Rewritten using known-dwarf
+       macros.
+       * show-die-info.c (tagnames): Removed.
+       (attrs): Removed.
+       (dwarf_tag_string): New function using known-dwarf macros.
+       (dwarf_attr_string): Likewise.
+       (handle): Call dwarf_tag_string and dwarf_attr_string instead.
+       * run-readelf-dwz-multi.sh: Expect language C89, not ISO C89.
+
+2012-06-27  Mark Wielaard  <mjw@redhat.com>
+
+       * Makefile.am (TESTS): Add run-readelf-dwz-multi.sh.
+       (EXTRA_DIST): Add run-readelf-dwz-multi.sh,
+       libtestfile_multi_shared.so.bz2, testfile_multi.dwz.bz2 and
+       testfile_multi_main.bz2.
+       * run-readelf-dwz-multi.sh: New test.
+       * libtestfile_multi_shared.so.bz2: New testfile.
+       * testfile_multi.dwz.bz2: New testifle.
+       * testfile_multi_main.bz2: New testifle.
+
+2012-08-01  Petr Machata  <pmachata@redhat.com>
+
+       * run-test-archive64.sh: New test.
+       * testarchive64.a.bz2: New testfile.
+       * Makefile.am (TESTS): Add run-test-archive64.sh.
+       (EXTRA_DIST): Likewise.
+
+2012-08-01  Mark Wielaard  <mjw@redhat.com>
+
+       * run-nm-self.sh: New test.
+       * run-readelf-self.sh: Likewise.
+       * test-subr.sh (testrun_on_self_quiet): New function.
+       * Makefile.am (TESTS): Add run-nm-self.sh and run-readelf-self.sh.
+       (EXTRA_DIST): Likewise.
+
+2012-08-01  Mark Wielaard  <mjw@redhat.com>
+
+       * test-subr.sh (self_test_files): New list of files.
+       (testrun_on_self): New function.
+       * run-elflint-self.sh: Use testrun_on_self.
+
+2012-07-19  Mark Wielaard  <mjw@redhat.com>
+
+       * Makefile.am (check_PROGRAMS): Add test-elf_cntl_gelf_getshdr.
+       (TESTS): Add run-elf_cntl_gelf_getshdr.sh.
+       (EXTRA_DIST): Likewise.
+       (test_elf_cntl_gelf_getshdr_LDADD): New.
+       test-elf_cntl_gelf_getshdr.c: New test program.
+       run-elf_cntl_gelf_getshdr.sh: New test script.
+
+2012-07-19  Mark Wielaard  <mjw@redhat.com>
+
+       * run-elflint-self.sh: runtests on ../backends/*so files.
+
+2012-07-19  Mark Wielaard  <mjw@redhat.com>
+
+       * run-unstrip-n.sh: test_cleanup.
+       * Makefile.am (EXTRA_DIST): Add testcore-rtlib-ppc.bz2.
+
+2012-07-11  Mark Wielaard  <mjw@redhat.com>
+
+       * run-readelf-macro.sh: New test.
+       * testfilemacro.bz2: New testfile.
+       * Makefile.am (TESTS): Add run-readelf-macro.sh.
+       (EXTRA_DIST): Add run-readelf-macro.sh and testfilemacro.bz2.
+
+2012-06-27  Mark Wielaard  <mjw@redhat.com>
+
+       * run-readelf-gdb-index.sh: New test.
+       * testfilegdbindex5.bz2: New testfile.
+       * testfilegdbindex7.bz2: Likewise.
+       * Makefile.am (TESTS): Add run-readelf-gdb-index.sh.
+       (EXTRA_DIST): run-readelf-gdb_index.sh, testfilegdbindex5.bz2 and
+       testfilegdbindex7.bz2.
+
+2012-07-17  Mark Wielaard  <mjw@redhat.com>
+
+       * testcore-rtlib-ppc.bz2: New testfile.
+       * run-unstrip-n.sh: Check new ppc core testfile.
+
+2012-06-26  Mike Frysinger  <vapier@gentoo.org>
+
+       * Makefile.am (check_PROGRAMS): Rename from noinst_PROGRAMS.
+
+2012-06-26  Mark Wielaard  <mjw@redhat.com>
+
+       * run-macro-test.sh: New test.
+       * testfile-macinfo.bz2: New testfile.
+       * testfile-macros.bz2: Likewise.
+
+2012-05-07  Mark Wielaard  <mjw@redhat.com>
+
+       * low_high_pc.c: Use proper inttypes in printf formats.
+
+2012-05-11  Mark Wielaard  <mjw@redhat.com>
+
+       * Makefile.am (TESTS_ENVIRONMENT): Set LC_ALL and LANG to C.
+
+2012-05-07  Mark Wielaard  <mjw@redhat.com>
+
+       * low_high_pc.c: Allow highpc == lowpc for CU DIEs for buggy GCC.
+
 2012-04-27  Mark Wielaard  <mjw@redhat.com>
 
        * Makefile.am (TESTS): Add run-low_high_pc.sh