]> git.ipfire.org Git - thirdparty/elfutils.git/log
thirdparty/elfutils.git
12 years agoAdd dwarf_endianity_string and dwarf_decimal_sign_string. mjw/dwarfstrings
Mark Wielaard [Sat, 11 Aug 2012 12:50:38 +0000 (14:50 +0200)] 
Add dwarf_endianity_string and dwarf_decimal_sign_string.

dwarf_endianity_string for DW_END codes used with DW_AT_endianity.
dwarf_decimal_sign_string for DW_DS codes used with DW_AT_decimal_sign.

Signed-off-by: Mark Wielaard <mjw@redhat.com>
12 years agotests: Add C++ self test binary.
Mark Wielaard [Tue, 24 Jul 2012 17:18:52 +0000 (19:18 +0200)] 
tests: Add C++ self test binary.

Only build and tested by self tests if a g++ with C++x0 is available.
Almost empty C++ program, can be extended to test more features.

Signed-off-by: Mark Wielaard <mjw@redhat.com>
12 years agotests: Add run-readelf-unknown-self.sh test to check for unknown DWARF codes.
Mark Wielaard [Wed, 1 Aug 2012 13:48:18 +0000 (15:48 +0200)] 
tests: Add run-readelf-unknown-self.sh test to check for unknown DWARF codes.

Signed-off-by: Mark Wielaard <mjw@redhat.com>
12 years agolibdw: Add dwarfstrings functions.
Mark Wielaard [Sun, 29 Jul 2012 21:47:28 +0000 (23:47 +0200)] 
libdw: Add dwarfstrings functions.

Introduce dwarf_access_string, dwarf_attr_string,
dwarf_calling_convention_string, dwarf_discr_list_string,
dwarf_encoding_string, dwarf_form_string, dwarf_identifier_case_string,
dwarf_inline_string, dwarf_lang_string, dwarf_line_extended_opcode_string,
dwarf_line_standard_opcode_string, dwarf_locexpr_opcode_string,
dwarf_ordering_string, dwarf_tag_string, dwarf_virtuality_string,
dwarf_visibility_string from dwarf branch.

Remove similar functions from readelf and tests.

Signed-off-by: Mark Wielaard <mjw@redhat.com>
12 years agoRewrite DWARF string functions using known-dwarf macros.
Mark Wielaard [Sun, 29 Jul 2012 11:58:04 +0000 (13:58 +0200)] 
Rewrite DWARF string functions using known-dwarf macros.

readelf and tests were using hard coded string tables to produce DWARF
string constants. Use the known-dwarf macros to redefine these and
reduce code. Technique comes from dwarf branch dwarfstrings.c.

Signed-off-by: Mark Wielaard <mjw@redhat.com>
12 years agoUpdate elf.h from glibc.
Roland McGrath [Thu, 16 Aug 2012 17:39:52 +0000 (10:39 -0700)] 
Update elf.h from glibc.

Signed-off-by: Roland McGrath <roland@hack.frob.com>
12 years agoelf32_checksum.c: Removed unused ebl_debugscn_p define and confusing comment.
Mark Wielaard [Tue, 14 Aug 2012 14:48:50 +0000 (16:48 +0200)] 
elf32_checksum.c: Removed unused ebl_debugscn_p define and confusing comment.

Signed-off-by: Mark Wielaard <mjw@redhat.com>
12 years agoUpdate main bugzilla URL
Jan Pokorný [Tue, 14 Aug 2012 12:42:22 +0000 (14:42 +0200)] 
Update main bugzilla URL

Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
12 years agolibdw: Add support for DWZ multifile forms DW_FORM_GNU_ref_alt/strp_alt.
Mark Wielaard [Fri, 22 Jun 2012 10:02:45 +0000 (12:02 +0200)] 
libdw: Add support for DWZ multifile forms DW_FORM_GNU_ref_alt/strp_alt.

DWZ multifile forms http://www.dwarfstd.org/ShowIssue.php?issue=120604.1
DW_FORM_GNU_ref_alt and DW_FORM_GNU_strp_alt reference an alternative
debuginfo file.  dwarf_begin and dwarf_begin_elf will try to use this
automatically.  There are no user visible changes to the libdw interface.

dwarf_formref_die, dwarf_formstring and dwarf_formudata can now return
a Dwarf_Die which comes from a CU in the alternative Dwarf descriptor.

__libdw_read_offset was adjusted to take an alternative Dwarf descriptor
into account.

Signed-off-by: Mark Wielaard <mjw@redhat.com>
12 years agoFix formatting string in readelf
Petr Machata [Wed, 1 Aug 2012 19:43:58 +0000 (21:43 +0200)] 
Fix formatting string in readelf

This caused failures of 32-bit builds.

Signed-off-by: Petr Machata <pmachata@redhat.com>
12 years agoTest case for handling archives with 64-bit symbol table
Petr Machata [Wed, 1 Aug 2012 19:41:36 +0000 (21:41 +0200)] 
Test case for handling archives with 64-bit symbol table

Signed-off-by: Petr Machata <pmachata@redhat.com>
12 years agoImplement support for archives with 64-bit symbol table
Petr Machata [Wed, 1 Aug 2012 19:37:52 +0000 (21:37 +0200)] 
Implement support for archives with 64-bit symbol table

Signed-off-by: Petr Machata <pmachata@redhat.com>
12 years agotests: Add run-nm-self.sh and run-readelf-self.sh tests.
Mark Wielaard [Wed, 1 Aug 2012 13:39:11 +0000 (15:39 +0200)] 
tests: Add run-nm-self.sh and run-readelf-self.sh tests.

Signed-off-by: Mark Wielaard <mjw@redhat.com>
12 years agotests: Introduce testrun_on_self, use it in run-elflint-self.sh
Mark Wielaard [Wed, 1 Aug 2012 13:31:12 +0000 (15:31 +0200)] 
tests: Introduce testrun_on_self, use it in run-elflint-self.sh

Signed-off-by: Mark Wielaard <mjw@redhat.com>
12 years agoReorder formatting string arguments so that there are no gaps in references
Petr Machata [Mon, 30 Jul 2012 17:48:28 +0000 (19:48 +0200)] 
Reorder formatting string arguments so that there are no gaps in references

It is required that formatting string that uses $-style references lists
all arguments.

Signed-off-by: Petr Machata <pmachata@redhat.com>
12 years agoreadelf: Use DW_LANG_ObjC and known[op].
Mark Wielaard [Sun, 29 Jul 2012 12:05:20 +0000 (14:05 +0200)] 
readelf: Use DW_LANG_ObjC and known[op].

Not all patches from the dwarfstrings branch were applied, causing compile
failures.

12 years agoconfig: known-dwarf.awk Fix "Generated by" header.
Mark Wielaard [Thu, 19 Jul 2012 21:31:45 +0000 (23:31 +0200)] 
config: known-dwarf.awk Fix "Generated by" header.

Generated header had wrong file names for config/known-dwarf.awk
and libdw/dwarf.h contents.

Signed-off-by: Mark Wielaard <mjw@redhat.com>
12 years agoAdd DW_OP_GNU_parameter_ref to dwarf.h and handle it in readelf.
Mark Wielaard [Thu, 19 Jul 2012 22:09:56 +0000 (00:09 +0200)] 
Add DW_OP_GNU_parameter_ref to dwarf.h and handle it in readelf.

DW_OP_GNU_parameter_ref takes as operand a 4 byte CU relative reference
to the abstract optimized away DW_TAG_formal_parameter.

Signed-off-by: Mark Wielaard <mjw@redhat.com>
12 years agoCorrect spelling of DW_LANG_ObjC in dwarf.h.
Mark Wielaard [Tue, 24 Jul 2012 11:20:41 +0000 (13:20 +0200)] 
Correct spelling of DW_LANG_ObjC in dwarf.h.

Fix usage in dwarf_aggregate_size.

Signed-off-by: Mark Wielaard <mjw@redhat.com>
12 years agolibdw: Add DWARF4 DW_ATE_UTF.
Mark Wielaard [Tue, 24 Jul 2012 18:00:14 +0000 (20:00 +0200)] 
libdw: Add DWARF4 DW_ATE_UTF.

Signed-off-by: Mark Wielaard <mjw@redhat.com>
12 years agoelf_getshdr should work for elf->flags & ELF_F_MALLOCED.
Mark Wielaard [Wed, 18 Jul 2012 11:14:30 +0000 (13:14 +0200)] 
elf_getshdr should work for elf->flags & ELF_F_MALLOCED.

Reported-by: Nick Alcock <nix@esperi.org.uk>
Signed-off-by: Mark Wielaard <mjw@redhat.com>
12 years agotest: run-elflint-self.sh ebl shared libraries are under backends now.
Mark Wielaard [Thu, 19 Jul 2012 20:59:18 +0000 (22:59 +0200)] 
test: run-elflint-self.sh ebl shared libraries are under backends now.

Signed-off-by: Mark Wielaard <mjw@redhat.com>
12 years agotest_cleanup run-unstrip-n.sh and add testcore-rtlib-ppc.bz2 to EXTRA_DIST.
Mark Wielaard [Thu, 19 Jul 2012 11:07:39 +0000 (13:07 +0200)] 
test_cleanup run-unstrip-n.sh and add testcore-rtlib-ppc.bz2 to EXTRA_DIST.

Signed-off-by: Mark Wielaard <mjw@redhat.com>
12 years agoMerge branch 'debug_macro'
Mark Wielaard [Thu, 19 Jul 2012 09:30:48 +0000 (11:30 +0200)] 
Merge branch 'debug_macro'

12 years agoMerge branch 'gdb_index7'
Mark Wielaard [Thu, 19 Jul 2012 09:25:07 +0000 (11:25 +0200)] 
Merge branch 'gdb_index7'

12 years agoAdd ppc testcase for elf32_xlatetom.c fix.
Mark Wielaard [Tue, 17 Jul 2012 19:12:39 +0000 (21:12 +0200)] 
Add ppc testcase for elf32_xlatetom.c fix.

Fails before commit bc0f74 on x86, succeeds after.

Signed-off-by: Mark Wielaard <mjw@redhat.com>
12 years agoelf*_xlatetom: do not check ELF_T_NHDR has integer number of records
Petr Machata [Tue, 17 Jul 2012 14:29:18 +0000 (16:29 +0200)] 
elf*_xlatetom: do not check ELF_T_NHDR has integer number of records

See this bug report for more details:
  https://bugzilla.redhat.com/show_bug.cgi?id=835877

Signed-off-by: Petr Machata <pmachata@redhat.com>
12 years agotests: only compile test programs when running test
Mike Frysinger [Tue, 26 Jun 2012 16:07:44 +0000 (12:07 -0400)] 
tests: only compile test programs when running test

The test binaries are only needed by make check, so change the PROGRAMS
category from noinst_ to check_ to speed up default `make && make install`.

If people want to run the tests, then the utilities will be compiled
automatically when they run `make check`, so the normal workflow should
be unchanged.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Mark Wielaard <mjw@redhat.com>
12 years agoreadelf: Add .debug_macro parsing support.
Mark Wielaard [Fri, 29 Jun 2012 20:30:15 +0000 (22:30 +0200)] 
readelf: Add .debug_macro parsing support.

Signed-off-by: Mark Wielaard <mjw@redhat.com>
12 years agoreadelf: Add .gdb_index version 7 support.
Mark Wielaard [Fri, 29 Jun 2012 21:38:09 +0000 (23:38 +0200)] 
readelf: Add .gdb_index version 7 support.

Add version 7 support. Keep track of cu_nr. Print kind and static/global
flag for each symbol. When a symbol is in the TU list add 'T'. Add
testfilegdbindex test files.

Signed-off-by: Mark Wielaard <mjw@redhat.com>
13 years agodwarf.h: Add DW_MACRO_GNU .debug_macro type encodings.
Mark Wielaard [Wed, 27 Jun 2012 08:15:27 +0000 (10:15 +0200)] 
dwarf.h: Add DW_MACRO_GNU .debug_macro type encodings.

Signed-off-by: Mark Wielaard <mjw@redhat.com>
13 years agoAdd low-level support for .debug_macro.
Mark Wielaard [Mon, 25 Jun 2012 15:18:53 +0000 (17:18 +0200)] 
Add low-level support for .debug_macro.

Signed-off-by: Mark Wielaard <mjw@redhat.com>
13 years agoAdd a rule to make build failure w/o --enable-maintainer-mode clearer.
Roland McGrath [Wed, 27 Jun 2012 01:09:10 +0000 (18:09 -0700)] 
Add a rule to make build failure w/o --enable-maintainer-mode clearer.

13 years agotests/low_high_pc.c: Use proper inttypes in printf formats. elfutils-0.154
Mark Wielaard [Fri, 22 Jun 2012 16:19:02 +0000 (18:19 +0200)] 
tests/low_high_pc.c: Use proper inttypes in printf formats.

Signed-off-by: Mark Wielaard <mjw@redhat.com>
13 years agoreadelf.c: Cast printf PRIu/x64 arguments to uint64_t for gcc 4.7 -Wformat.
Mark Wielaard [Fri, 22 Jun 2012 14:44:54 +0000 (16:44 +0200)] 
readelf.c: Cast printf PRIu/x64 arguments to uint64_t for gcc 4.7 -Wformat.

Signed-off-by: Mark Wielaard <mjw@redhat.com>
13 years agoPrepare 0.153 release.
Mark Wielaard [Fri, 22 Jun 2012 12:14:08 +0000 (14:14 +0200)] 
Prepare 0.153 release.

Signed-off-by: Mark Wielaard <mjw@redhat.com>
13 years agoUpdate name, license and contributor policy.
Mark Wielaard [Tue, 5 Jun 2012 15:15:16 +0000 (17:15 +0200)] 
Update name, license and contributor policy.

* Change name from "Red Hat elfutils" to "elfutils".
* Update license of standalone tools and test from GPLv2 to GPLv3+.
* Change license of libraries from GPLv2+exception to GPLv2/LGPLv3+.
* Add Developer Certificate of Origin based contributor policy.

top-level:

- COPYING: Upgraded from GPLv2 to GPLv3.
- CONTRIBUTING, COPYING-GPLv2, COPYING-LGPLv3: New files.
- NEWS: Added note about new contribution and license policy.
- Makefile.am: Updated to GPLv3, added new files to EXTRA_DIST.
- configure.ac: Update to GPLv3, changed AC_INIT name to 'elfutils'.

backends, lib, libasm, libcpu, libdw, libdwfl, libebl, libelf:

- All files updated to GPLv2/LGPLv3+. Except some very small files
  (<5 lines) which didn't have any headers at all before, the linker
  .maps files and the libcpu/defs files which only contain data and
  libelf/elf.h which comes from glibc and is under LGPLv2+.

config:

- elfutils.spec.in: Add new License: headers and new %doc files.
- Update all license headers to GPLv2/LGPLv3+ for files used by libs.

src, tests:

- All files updated to GPLv3+. Except for the test bz2 data files, the
  linker maps and script files and some very small files (<5 lines)
  that don't have any headers.

Signed-off-by: Richard Fontana <rfontana@redhat.com>
Signed-off-by: Mark Wielaard <mjw@redhat.com>
13 years agoRemove .mtn-ignore and .cvsignore files.
Mark Wielaard [Tue, 5 Jun 2012 12:55:29 +0000 (14:55 +0200)] 
Remove .mtn-ignore and .cvsignore files.

We use .gitignore these days.

13 years agoRemove unused (generated) src/ylwrap file.
Mark Wielaard [Tue, 5 Jun 2012 12:42:38 +0000 (14:42 +0200)] 
Remove unused (generated) src/ylwrap file.

ylwrap is now placed in config through AC_CONFIG_AUX_DIR.
The checked in src copy of the file wasn't used.

13 years agoTESTS_ENVIRONMENT set LC_ALL and LANG to C.
Mark Wielaard [Fri, 11 May 2012 10:57:57 +0000 (12:57 +0200)] 
TESTS_ENVIRONMENT set LC_ALL and LANG to C.

Some tests rely on sort order and output of tools that might be localized.

Reported-by: Paweł Sikora <pluto@pld-linux.org>
13 years agoelflint: Allow zero sized sections at (filesz) end of segment.
Mark Wielaard [Wed, 9 May 2012 09:27:44 +0000 (11:27 +0200)] 
elflint: Allow zero sized sections at (filesz) end of segment.

13 years agotests/low_high_pc.c: Allow highpc == lowpc for CU DIEs for buggy GCC.
Mark Wielaard [Mon, 7 May 2012 11:29:52 +0000 (13:29 +0200)] 
tests/low_high_pc.c: Allow highpc == lowpc for CU DIEs for buggy GCC.

GCC < 4.7 had a bug where no code CUs got a highpc == lowpc.
Allow that, because it is not the main purpose of this test.

13 years agodwarf_highpc: Handle DW_AT_high_pc being a constant offset from DW_AT_low_pc.
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.

13 years agoRemoved old libdwarf test show-ciefde.
Mark Wielaard [Thu, 26 Apr 2012 10:24:33 +0000 (12:24 +0200)] 
Removed old libdwarf test show-ciefde.

13 years agoreadelf.c (print_ops): Add missing DW_OP_GNU operands.
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.

13 years agoAdd new run-unstrip-n.sh test for RHBZ#805447 fixed in commit 210c2f.
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.

13 years agoelf32_offscn.c: Do not match SHT_NOBITS sections at OFFSET.
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().

13 years agoelflint: Accept SHF_INFO_LINK for reloc sections.
Roland McGrath [Wed, 28 Mar 2012 22:01:49 +0000 (15:01 -0700)] 
elflint: Accept SHF_INFO_LINK for reloc sections.

13 years agoreadelf.c: Check debug section data before trying to print abbrev or str.
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.

13 years agoRHBZ#805447: Fix core file grokking for case of truncated .dynstr
Roland McGrath [Wed, 28 Mar 2012 17:22:35 +0000 (10:22 -0700)] 
RHBZ#805447: Fix core file grokking for case of truncated .dynstr

13 years agoDon't exclude sh_type >= SHT_NUM from stripping.
Roland McGrath [Thu, 22 Mar 2012 17:25:55 +0000 (10:25 -0700)] 
Don't exclude sh_type >= SHT_NUM from stripping.

13 years agoFix bug using dwarf_next_unit to iterate over .debug_types
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.

13 years agoreadelf.c (print_gdb_index_section): Accept version 6.
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.

13 years agoelf_end.c (elf_end): Call rwlock_unlock before rwlock_fini.
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>
13 years agolibcpu Makefile.am, move %_dis.h from CLEANFILES to MAINTAINERCLEANFILES.
Mark Wielaard [Fri, 24 Feb 2012 22:41:53 +0000 (23:41 +0100)] 
libcpu Makefile.am, move %_dis.h from CLEANFILES to MAINTAINERCLEANFILES.

13 years agorun-alldts.sh: testrun ./alldts.
Kurt Roeckx [Fri, 24 Feb 2012 22:40:32 +0000 (23:40 +0100)] 
run-alldts.sh: testrun ./alldts.

13 years agorun-alldts.sh: testrun ./alldts.
Kurt Roeckx [Fri, 24 Feb 2012 22:14:00 +0000 (23:14 +0100)] 
run-alldts.sh: testrun ./alldts.

13 years agoCOPYING: Fix address. Updated version from gnulib.
Mark Wielaard [Fri, 24 Feb 2012 09:56:30 +0000 (10:56 +0100)] 
COPYING: Fix address. Updated version from gnulib.

13 years agoPrepare 0.153 release. elfutils-0.153
Mark Wielaard [Thu, 23 Feb 2012 11:28:59 +0000 (12:28 +0100)] 
Prepare 0.153 release.

13 years agotest-subr.sh: Add ${libdir}/elfutils to LD_LIBRARY_PATH.
Roland McGrath [Tue, 21 Feb 2012 20:51:36 +0000 (12:51 -0800)] 
test-subr.sh: Add ${libdir}/elfutils to LD_LIBRARY_PATH.

13 years agotest-wrapper.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.

13 years agoHandle DW_FORM_sec_offset in dwarf_formudata.
Mark Wielaard [Tue, 31 Jan 2012 18:22:03 +0000 (19:22 +0100)] 
Handle DW_FORM_sec_offset in dwarf_formudata.

13 years agoCosmetic cleanups to NEWS.
Roland McGrath [Mon, 23 Jan 2012 18:34:17 +0000 (10:34 -0800)] 
Cosmetic cleanups to NEWS.

13 years agoAdd NEWS entries for libdwfl, readelf, strip and dwarf.h.
Mark Wielaard [Sun, 22 Jan 2012 18:28:20 +0000 (19:28 +0100)] 
Add NEWS entries for libdwfl, readelf, strip and dwarf.h.

13 years agoUpdate copyright year
Ulrich Drepper [Sat, 21 Jan 2012 23:19:24 +0000 (18:19 -0500)] 
Update copyright year

13 years agoColor code output of nm and objdump
Ulrich Drepper [Sat, 21 Jan 2012 23:14:39 +0000 (18:14 -0500)] 
Color code output of nm and objdump

13 years agoFix warning nit.
Roland McGrath [Fri, 20 Jan 2012 21:38:29 +0000 (13:38 -0800)] 
Fix warning nit.

13 years agoHandle --enable-deterministic-archives to make -D behavior default for ar and ranlib.
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.

13 years agoar: Don't crash when given files but no command.
Roland McGrath [Fri, 20 Jan 2012 20:04:19 +0000 (12:04 -0800)] 
ar: Don't crash when given files but no command.

13 years agoGrok -U as inverse of -D in ar and ranlib.
Roland McGrath [Fri, 20 Jan 2012 19:43:36 +0000 (11:43 -0800)] 
Grok -U as inverse of -D in ar and ranlib.

13 years agoSupport -D in ranlib as in ar.
Roland McGrath [Fri, 20 Jan 2012 19:40:59 +0000 (11:40 -0800)] 
Support -D in ranlib as in ar.

13 years agoDon't set LD_LIBRARY_PATH explicitly for command run inside test case.
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.

13 years agoFix .eh_frame decoding in the absence of any DWARF.
Roland McGrath [Tue, 20 Dec 2011 18:55:01 +0000 (10:55 -0800)] 
Fix .eh_frame decoding in the absence of any DWARF.

13 years agoFix elf_from_remote_memory for ELFCLASS64 case.
Roland McGrath [Fri, 2 Dec 2011 17:45:53 +0000 (09:45 -0800)] 
Fix elf_from_remote_memory for ELFCLASS64 case.

13 years agoar: Implement -D.
Roland McGrath [Sun, 6 Nov 2011 04:08:07 +0000 (21:08 -0700)] 
ar: Implement -D.

13 years agoar: Fix a return value check.
Roland McGrath [Sun, 6 Nov 2011 03:58:14 +0000 (20:58 -0700)] 
ar: Fix a return value check.

13 years agoUse index of first global symbol to speed up dwfl_module_addrsym search.
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.

13 years agodwfl_module_addrsym update sizeless_sym only if closer to desired addr.
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.

13 years agoRun gawk on config/known-dwarf.awk.
Mark Wielaard [Mon, 31 Oct 2011 14:01:50 +0000 (15:01 +0100)] 
Run gawk on config/known-dwarf.awk.

13 years agoMerge branch 'roland/maintainer-gendis'
Roland McGrath [Sun, 23 Oct 2011 20:54:53 +0000 (13:54 -0700)] 
Merge branch 'roland/maintainer-gendis'

13 years agoderelocate.c (cache_sections): Intern mod->reloc_info check.
Mark Wielaard [Thu, 20 Oct 2011 14:53:54 +0000 (16:53 +0200)] 
derelocate.c (cache_sections): Intern mod->reloc_info check.

13 years agoInclude *_dis.h headers in dist; generate them only for --enable-maintainer-mode.
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.

13 years agoUse POSIX.2 shell features in eu_version calculation.
Roland McGrath [Sat, 8 Oct 2011 22:14:30 +0000 (15:14 -0700)] 
Use POSIX.2 shell features in eu_version calculation.

13 years agoFix use of AC_ARG_ENABLE to handle $enableval correctly.
Mike Frysinger [Sat, 8 Oct 2011 22:09:15 +0000 (15:09 -0700)] 
Fix use of AC_ARG_ENABLE to handle $enableval correctly.

13 years agoIgnore files generated by building in the source directory.
Roland McGrath [Sat, 8 Oct 2011 21:58:24 +0000 (14:58 -0700)] 
Ignore files generated by building in the source directory.

13 years agoreadelf.c: Assume the right size of an array
Marek Polacek [Tue, 4 Oct 2011 09:11:42 +0000 (05:11 -0400)] 
readelf.c: Assume the right size of an array

13 years agoMore CL
Ulrich Drepper [Mon, 3 Oct 2011 20:08:33 +0000 (16:08 -0400)] 
More CL

13 years agoFix nm output for sysv format
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.

13 years agoImprove nm output for BSD and POSIX format
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.

13 years agoUpdate spec file for dependency on C++ library
Ulrich Drepper [Sun, 2 Oct 2011 12:49:57 +0000 (08:49 -0400)] 
Update spec file for dependency on C++ library

13 years agoAdd demangling support to nm
Ulrich Drepper [Sun, 2 Oct 2011 12:33:19 +0000 (08:33 -0400)] 
Add demangling support to nm

13 years ago * libdw.h (dwarf_offdie): Fix documentation to mention .debug_info.
Mark Wielaard [Thu, 14 Jul 2011 10:59:26 +0000 (12:59 +0200)] 
    * libdw.h (dwarf_offdie): Fix documentation to mention .debug_info.

13 years agoreadelf: Grok -W/--wide for binutils compatibility.
Roland McGrath [Sat, 9 Jul 2011 12:33:37 +0000 (05:33 -0700)] 
readelf: Grok -W/--wide for binutils compatibility.

13 years agoWire up -u option handling in ar.
Roland McGrath [Sat, 9 Jul 2011 10:20:16 +0000 (03:20 -0700)] 
Wire up -u option handling in ar.

13 years agoClean up byte order handling in md5 and sha1 code.
Roland McGrath [Sat, 9 Jul 2011 10:17:24 +0000 (03:17 -0700)] 
Clean up byte order handling in md5 and sha1 code.

14 years agostrip.c (relocate): Make offset check overflow-proof.
Mark Wielaard [Mon, 30 May 2011 15:23:57 +0000 (17:23 +0200)] 
strip.c (relocate): Make offset check overflow-proof.

14 years agoAdd missing test wrappers to Makefile.am (EXTRA_DIST).
Mark Wielaard [Mon, 30 May 2011 13:46:32 +0000 (15:46 +0200)] 
Add missing test wrappers to Makefile.am (EXTRA_DIST).

14 years agostrip: --reloc-debug-sections, relocate against any debug section symbol.
Mark Wielaard [Tue, 24 May 2011 14:09:31 +0000 (16:09 +0200)] 
strip: --reloc-debug-sections, relocate against any debug section symbol.

14 years agoAdd hello_s390.ko testcase to run-strip-reloc.sh.
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.

14 years agostrip: Add --reloc-debug-sections option.
Mark Wielaard [Mon, 16 May 2011 09:33:11 +0000 (11:33 +0200)] 
strip: Add --reloc-debug-sections option.