Mark Wielaard [Fri, 27 Apr 2012 11:00:50 +0000 (13:00 +0200)]
dwarf_highpc: Handle DW_AT_high_pc being a constant offset from DW_AT_low_pc.
Mark Wielaard [Thu, 26 Apr 2012 10:24:33 +0000 (12:24 +0200)]
Removed old libdwarf test show-ciefde.
Mark Wielaard [Tue, 24 Apr 2012 09:56:42 +0000 (11:56 +0200)]
readelf.c (print_ops): Add missing DW_OP_GNU operands.
DW_OP_GNU_push_tls_address, DW_OP_GNU_uinit and DW_OP_GNU_encoded_addr.
Mark Wielaard [Mon, 2 Apr 2012 22:21:50 +0000 (00:21 +0200)]
Add new run-unstrip-n.sh test for RHBZ#805447 fixed in commit 210c2f.
Mark Wielaard [Mon, 2 Apr 2012 15:11:25 +0000 (17:11 +0200)]
elf32_offscn.c: Do not match SHT_NOBITS sections at OFFSET.
readelf -d doesn't work if a SHT_NOBITS section is right before the actual
.dynamic section at the same offset. elflint also fails on such binaries.
So skip SHT_NOBITS sections at the same offset in [g]elf[32|64]_offscn().
Roland McGrath [Wed, 28 Mar 2012 22:01:49 +0000 (15:01 -0700)]
elflint: Accept SHF_INFO_LINK for reloc sections.
Mark Wielaard [Wed, 28 Mar 2012 09:20:36 +0000 (11:20 +0200)]
readelf.c: Check debug section data before trying to print abbrev or str.
* readelf.c (print_debug_abbrev_section): Check there is Dwarf
section data.
(print_debug_str_section): Likewise.
Roland McGrath [Wed, 28 Mar 2012 17:22:35 +0000 (10:22 -0700)]
RHBZ#805447: Fix core file grokking for case of truncated .dynstr
Roland McGrath [Thu, 22 Mar 2012 17:25:55 +0000 (10:25 -0700)]
Don't exclude sh_type >= SHT_NUM from stripping.
Tom Tromey [Wed, 21 Mar 2012 14:54:32 +0000 (08:54 -0600)]
Fix bug using dwarf_next_unit to iterate over .debug_types
* libdw_findcu.c (findcu_cb): Move earlier.
(__libdw_intern_next_unit): Add new CU to search tree here...
(__libdw_findcu): ... not here.
* typeiter.c: New file.
* run-typeiter.sh: New file.
* testfile59.bz2: New file.
* Makefile.am (noinst_PROGRAMS): Add typeiter.
(TESTS): Add run-typeiter.sh.
(EXTRA_DIST): Add run-typeiter.sh, testfile59.bz2.
(typeiter_LDADD): New variable.
If you call dwarf_next_unit to iterate over .debug_types, then call
dwarf_offdie_types, you can see a failure if some earlier call
happened to call __libdw_intern_next_unit via dwarf_formref_die.
What happens is that __libdw_intern_next_unit updates the Dwarf's
next_tu_offset, but does not add the TU to the TU search tree. So,
the call to dwarf_offdie_types does not find the TU in the tree, and
will not search any more, causing a failure.
This fix changes __libdw_intern_next_unit to add the TU to the search
tree, rather than relying on __libdw_findcu to do it.
Mark Wielaard [Wed, 21 Mar 2012 15:05:31 +0000 (16:05 +0100)]
readelf.c (print_gdb_index_section): Accept version 6.
No changes in the format. Version 6 contains symbols for inlined
functions, older versions didn't.
Mark Wielaard [Sun, 26 Feb 2012 12:14:32 +0000 (13:14 +0100)]
elf_end.c (elf_end): Call rwlock_unlock before rwlock_fini.
Reported-by: Kurt Roeckx <kurt@roeckx.be>
Mark Wielaard [Fri, 24 Feb 2012 22:41:53 +0000 (23:41 +0100)]
libcpu Makefile.am, move %_dis.h from CLEANFILES to MAINTAINERCLEANFILES.
Kurt Roeckx [Fri, 24 Feb 2012 22:40:32 +0000 (23:40 +0100)]
run-alldts.sh: testrun ./alldts.
Kurt Roeckx [Fri, 24 Feb 2012 22:14:00 +0000 (23:14 +0100)]
run-alldts.sh: testrun ./alldts.
Mark Wielaard [Fri, 24 Feb 2012 09:56:30 +0000 (10:56 +0100)]
COPYING: Fix address. Updated version from gnulib.
Mark Wielaard [Thu, 23 Feb 2012 11:28:59 +0000 (12:28 +0100)]
Prepare 0.153 release.
Roland McGrath [Tue, 21 Feb 2012 20:51:36 +0000 (12:51 -0800)]
test-subr.sh: Add ${libdir}/elfutils to LD_LIBRARY_PATH.
Roland McGrath [Tue, 21 Feb 2012 19:12:46 +0000 (11:12 -0800)]
test-wrapper.sh: Add ${libdir}/elfutils to LD_LIBRARY_PATH.
Mark Wielaard [Tue, 31 Jan 2012 18:22:03 +0000 (19:22 +0100)]
Handle DW_FORM_sec_offset in dwarf_formudata.
Roland McGrath [Mon, 23 Jan 2012 18:34:17 +0000 (10:34 -0800)]
Cosmetic cleanups to NEWS.
Mark Wielaard [Sun, 22 Jan 2012 18:28:20 +0000 (19:28 +0100)]
Add NEWS entries for libdwfl, readelf, strip and dwarf.h.
Ulrich Drepper [Sat, 21 Jan 2012 23:19:24 +0000 (18:19 -0500)]
Update copyright year
Ulrich Drepper [Sat, 21 Jan 2012 23:14:39 +0000 (18:14 -0500)]
Color code output of nm and objdump
Roland McGrath [Fri, 20 Jan 2012 21:38:29 +0000 (13:38 -0800)]
Fix warning nit.
Roland McGrath [Fri, 20 Jan 2012 20:51:46 +0000 (12:51 -0800)]
Handle --enable-deterministic-archives to make -D behavior default for ar and ranlib.
Roland McGrath [Fri, 20 Jan 2012 20:04:19 +0000 (12:04 -0800)]
ar: Don't crash when given files but no command.
Roland McGrath [Fri, 20 Jan 2012 19:43:36 +0000 (11:43 -0800)]
Grok -U as inverse of -D in ar and ranlib.
Roland McGrath [Fri, 20 Jan 2012 19:40:59 +0000 (11:40 -0800)]
Support -D in ranlib as in ar.
Roland McGrath [Wed, 18 Jan 2012 21:57:08 +0000 (13:57 -0800)]
Don't set LD_LIBRARY_PATH explicitly for command run inside test case.
Roland McGrath [Tue, 20 Dec 2011 18:55:01 +0000 (10:55 -0800)]
Fix .eh_frame decoding in the absence of any DWARF.
Roland McGrath [Fri, 2 Dec 2011 17:45:53 +0000 (09:45 -0800)]
Fix elf_from_remote_memory for ELFCLASS64 case.
Roland McGrath [Sun, 6 Nov 2011 04:08:07 +0000 (21:08 -0700)]
ar: Implement -D.
Roland McGrath [Sun, 6 Nov 2011 03:58:14 +0000 (20:58 -0700)]
ar: Fix a return value check.
Mark Wielaard [Mon, 31 Oct 2011 22:17:06 +0000 (23:17 +0100)]
Use index of first global symbol to speed up dwfl_module_addrsym search.
Cache the index of the first global symbol in the module's symbol table,
or -1 when unknown. All symbols with local binding come first in the
symbol table before the global symbols. Use this information to speed
up dwfl_module_addrsym search.
Mark Wielaard [Mon, 31 Oct 2011 14:33:49 +0000 (15:33 +0100)]
dwfl_module_addrsym update sizeless_sym only if closer to desired addr.
Mark Wielaard [Mon, 31 Oct 2011 14:01:50 +0000 (15:01 +0100)]
Run gawk on config/known-dwarf.awk.
Roland McGrath [Sun, 23 Oct 2011 20:54:53 +0000 (13:54 -0700)]
Merge branch 'roland/maintainer-gendis'
Mark Wielaard [Thu, 20 Oct 2011 14:53:54 +0000 (16:53 +0200)]
derelocate.c (cache_sections): Intern mod->reloc_info check.
Roland McGrath [Sun, 16 Oct 2011 16:23:00 +0000 (09:23 -0700)]
Include *_dis.h headers in dist; generate them only for --enable-maintainer-mode.
Roland McGrath [Sat, 8 Oct 2011 22:14:30 +0000 (15:14 -0700)]
Use POSIX.2 shell features in eu_version calculation.
Mike Frysinger [Sat, 8 Oct 2011 22:09:15 +0000 (15:09 -0700)]
Fix use of AC_ARG_ENABLE to handle $enableval correctly.
Roland McGrath [Sat, 8 Oct 2011 21:58:24 +0000 (14:58 -0700)]
Ignore files generated by building in the source directory.
Marek Polacek [Tue, 4 Oct 2011 09:11:42 +0000 (05:11 -0400)]
readelf.c: Assume the right size of an array
Ulrich Drepper [Mon, 3 Oct 2011 20:08:33 +0000 (16:08 -0400)]
More CL
Ulrich Drepper [Mon, 3 Oct 2011 19:53:12 +0000 (15:53 -0400)]
Fix nm output for sysv format
Undefined symbols need no address and siz printed. Avoid the initial
entry which is no real symbol. Avoid section symbols.
Ulrich Drepper [Mon, 3 Oct 2011 11:23:07 +0000 (07:23 -0400)]
Improve nm output for BSD and POSIX format
The binutils version showed more information since it distinguished
unique symbols, symbols in read-only and bss sections. The format
is now the same. In addition handle TLS symbols correctly but
differently from binutils nm since the latter drops information.
Instead use a @ suffix to indicate TLS similar to * to indicate
weak.
Ulrich Drepper [Sun, 2 Oct 2011 12:49:57 +0000 (08:49 -0400)]
Update spec file for dependency on C++ library
Ulrich Drepper [Sun, 2 Oct 2011 12:33:19 +0000 (08:33 -0400)]
Add demangling support to nm
Mark Wielaard [Thu, 14 Jul 2011 10:59:26 +0000 (12:59 +0200)]
* libdw.h (dwarf_offdie): Fix documentation to mention .debug_info.
Roland McGrath [Sat, 9 Jul 2011 12:33:37 +0000 (05:33 -0700)]
readelf: Grok -W/--wide for binutils compatibility.
Roland McGrath [Sat, 9 Jul 2011 10:20:16 +0000 (03:20 -0700)]
Wire up -u option handling in ar.
Roland McGrath [Sat, 9 Jul 2011 10:17:24 +0000 (03:17 -0700)]
Clean up byte order handling in md5 and sha1 code.
Mark Wielaard [Mon, 30 May 2011 15:23:57 +0000 (17:23 +0200)]
strip.c (relocate): Make offset check overflow-proof.
Mark Wielaard [Mon, 30 May 2011 13:46:32 +0000 (15:46 +0200)]
Add missing test wrappers to Makefile.am (EXTRA_DIST).
Mark Wielaard [Tue, 24 May 2011 14:09:31 +0000 (16:09 +0200)]
strip: --reloc-debug-sections, relocate against any debug section symbol.
Mark Wielaard [Tue, 24 May 2011 12:30:40 +0000 (14:30 +0200)]
Add hello_s390.ko testcase to run-strip-reloc.sh.
This new test PASSes, but looking at the size results will show
--reloc-debug-sections isn't making a huge difference for this case.
Mark Wielaard [Mon, 16 May 2011 09:33:11 +0000 (11:33 +0200)]
strip: Add --reloc-debug-sections option.
Mark Wielaard [Tue, 17 May 2011 10:20:01 +0000 (12:20 +0200)]
strip: Handle SHT_GROUP sections better.
Jakub Jelinek [Tue, 17 May 2011 15:00:14 +0000 (17:00 +0200)]
Add DW_OP_GNU_const_type/regval_type/deref_type/convert/reinterpret.
Mark Wielaard [Tue, 17 May 2011 13:34:02 +0000 (15:34 +0200)]
dwarf_tag_string fixup GNU_call_site and GNU_call_site_parameter strings.
Marek Polacek [Thu, 12 May 2011 10:08:21 +0000 (12:08 +0200)]
nm.c: Remove unused if/else and parameters.
Marek Polacek [Sat, 7 May 2011 17:26:20 +0000 (19:26 +0200)]
unstrip.c: Mark function as static.
Mark Wielaard [Tue, 3 May 2011 09:35:22 +0000 (11:35 +0200)]
Merge branch 'mjw/sdt'
Mark Wielaard [Thu, 28 Apr 2011 08:14:39 +0000 (10:14 +0200)]
Merge branch 'mjw/gdb_index'
Mark Wielaard [Thu, 14 Apr 2011 21:47:26 +0000 (23:47 +0200)]
Add printing of .gdb_index section to readelf.
Mark Wielaard [Tue, 26 Apr 2011 15:15:28 +0000 (17:15 +0200)]
libdw: Sanity check end of section against cu_data () of die->cu.
A Dwarf_CU can come from either the debug_info compile unit or a
debug_type type unit section. Use the correct one for sanity checking
whether we have a truncated section.
Mark Wielaard [Sun, 24 Apr 2011 15:53:38 +0000 (17:53 +0200)]
Add support for printing SDT elf notes.
libebl/
* libebl.h (ebl_object_note_type_name): Add const char *name arg.
* eblhooks.h (object_note_type_name): Likewise.
* eblopenbackend.c (default_object_note_type_name): Likewise.
* eblobjnotetypename.c (ebl_object_note_type_name): Likewise.
And print version if name is "stapsdt".
* eblobjnote.c (ebl_object_note): Add output for "stapsdt" notes.
src/
* readelf.c (handle_notes_data): Call ebl_object_note_type_name
with note name.
Marek Polacek [Fri, 15 Apr 2011 09:41:32 +0000 (11:41 +0200)]
Fix doubled words.
Mark Wielaard [Mon, 11 Apr 2011 15:24:16 +0000 (17:24 +0200)]
Fix libdwfl compile issue in case none of the compression libraries are there.
* linux-kernel-modules.c (vmlinux_suffixes): Guard definition
by check for zlib, bzlib or lzma defines to check it isn't empty.
(try_kernel_name): Use same guard for use of vmlinux_suffixes.
Marek Polacek [Mon, 28 Mar 2011 14:00:38 +0000 (16:00 +0200)]
New test for ebl_dynamic_tag_name.
Petr Machata [Fri, 25 Mar 2011 14:17:04 +0000 (15:17 +0100)]
Improve output of readelf -wline
Marek Polacek [Fri, 25 Mar 2011 12:14:19 +0000 (13:14 +0100)]
Merge branch 'mpolacek/readelf-pltrel-case'
Marek Polacek [Fri, 25 Mar 2011 10:27:39 +0000 (11:27 +0100)]
Merge branch 'mpolacek/tlsdesc'
Petr Machata [Thu, 24 Mar 2011 12:39:20 +0000 (13:39 +0100)]
Merge branch 'pmachata/rerequest-tag'
Mark Wielaard [Tue, 22 Mar 2011 22:03:31 +0000 (23:03 +0100)]
Add support for call_site and entry_value to dwarf.h and readelf.
New tags DW_TAG_GNU_call_site and DW_TAG_GNU_call_site_parameter.
New attributes DW_AT_GNU_call_site_value,
DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites,
and DW_AT_GNU_all_source_call_sites.
New operation DW_OP_GNU_entry_value.
Marek Polacek [Tue, 22 Mar 2011 00:07:20 +0000 (01:07 +0100)]
Don't segfault at DT_PLTREL case.
Marek Polacek [Mon, 21 Mar 2011 22:46:56 +0000 (23:46 +0100)]
Fix typo in TLSDESC_GOT.
Petr Machata [Wed, 16 Mar 2011 17:16:12 +0000 (18:16 +0100)]
Handle repeated requests for invalid abbreviation
Mark Wielaard [Thu, 10 Mar 2011 12:02:32 +0000 (13:02 +0100)]
Add new ebl_check_st_other_bits function.
Roland McGrath [Thu, 10 Mar 2011 02:21:22 +0000 (18:21 -0800)]
Cosmetic cleanup for new test.
Petr Machata [Thu, 10 Mar 2011 00:50:32 +0000 (01:50 +0100)]
Reject requests for abbreviation with code 0
Roland McGrath [Wed, 9 Mar 2011 18:10:36 +0000 (10:10 -0800)]
Alpha backend: accept any _GLOBAL_OFFSET_TABLE_ value.
Petr Machata [Wed, 9 Mar 2011 18:01:29 +0000 (10:01 -0800)]
Check for truncated section in dwarf_child.
Roland McGrath [Wed, 9 Mar 2011 00:26:02 +0000 (16:26 -0800)]
libdwfl: Clear errno before using its ambient value.
Marek Polacek [Mon, 7 Mar 2011 19:16:50 +0000 (11:16 -0800)]
New test for dwarf_getstring.
Roland McGrath [Thu, 3 Mar 2011 18:48:51 +0000 (10:48 -0800)]
Merge branch 'master' of ssh://git.fedorahosted.org/git/elfutils
Jan Kratochvil [Sun, 27 Feb 2011 20:01:25 +0000 (12:01 -0800)]
Fix readelf --debug-dump=loc crash on multiple input files.
Mark Wielaard [Fri, 25 Feb 2011 19:17:52 +0000 (20:17 +0100)]
BUILT_RPATH vs BUILD_RPATH fixup.
* tests/Makefile.am (BUILD_RPATH): Be consistent in naming.
Mark Wielaard [Fri, 25 Feb 2011 11:58:54 +0000 (12:58 +0100)]
Merge over readelf dwarf string additions from dwarf branch dwarfstrings.
* readelf.c (dwarf_attr_string): Add DW_AT_GNU_* handling.
(dwarf_form_string): Properly format and return unknown form.
Roland McGrath [Thu, 24 Feb 2011 03:52:46 +0000 (19:52 -0800)]
Support reading .zdebug_* DWARF sections compressed via zlib.
Roland McGrath [Wed, 23 Feb 2011 17:23:08 +0000 (09:23 -0800)]
Handle DW_AT_GNU_odr_signature in readelf.
Ulrich Drepper [Tue, 15 Feb 2011 14:36:26 +0000 (09:36 -0500)]
Prepare 0.152 release.
raven [Sun, 13 Feb 2011 15:25:49 +0000 (15:25 +0000)]
l10n: Updates to Polish (pl) translation
Transmitted-via: Transifex (translate.fedoraproject.org)
yurchor [Sat, 12 Feb 2011 11:37:27 +0000 (11:37 +0000)]
l10n: Updates to Ukrainian (uk) translation
Transmitted-via: Transifex (translate.fedoraproject.org)
Roland McGrath [Fri, 11 Feb 2011 20:38:36 +0000 (12:38 -0800)]
NEWS item for last change
Roland McGrath [Fri, 11 Feb 2011 20:29:45 +0000 (12:29 -0800)]
libdwfl: Search for Linux kernel binaries with compression file name suffixes.
Roland McGrath [Fri, 11 Feb 2011 18:42:45 +0000 (10:42 -0800)]
elfcmp: Add --l/--verbose flag.
Roland McGrath [Fri, 11 Feb 2011 18:32:30 +0000 (10:32 -0800)]
elfcmp: Add --ignore-build-id flag.
Roland McGrath [Wed, 9 Feb 2011 03:48:42 +0000 (19:48 -0800)]
ldscript: Remove unused variable.