summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Add dwarf_endianity_string and dwarf_decimal_sign_string.upstream/mjw/dwarfstringsMark Wielaard2012-08-168-1/+164
| | | | | | | 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 <[email protected]>
* tests: Add C++ self test binary.Mark Wielaard2012-08-169-0/+213
| | | | | | | 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 <[email protected]>
* tests: Add run-readelf-unknown-self.sh test to check for unknown DWARF codes.Mark Wielaard2012-08-164-1/+58
| | | | Signed-off-by: Mark Wielaard <[email protected]>
* libdw: Add dwarfstrings functions.Mark Wielaard2012-08-1625-284/+988
| | | | | | | | | | | | | | 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 <[email protected]>
* Rewrite DWARF string functions using known-dwarf macros.Mark Wielaard2012-08-169-1034/+435
| | | | | | | | 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 <[email protected]>
* Update elf.h from glibc.Roland McGrath2012-08-162-23/+257
| | | | Signed-off-by: Roland McGrath <[email protected]>
* elf32_checksum.c: Removed unused ebl_debugscn_p define and confusing comment.Mark Wielaard2012-08-142-5/+5
| | | | Signed-off-by: Mark Wielaard <[email protected]>
* Update main bugzilla URLJan Pokorný2012-08-141-1/+1
| | | | Signed-off-by: Jan Pokorný <[email protected]>
* libdw: Add support for DWZ multifile forms DW_FORM_GNU_ref_alt/strp_alt.Mark Wielaard2012-08-0921-14/+403
| | | | | | | | | | | | | | | 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 <[email protected]>
* Fix formatting string in readelfPetr Machata2012-08-071-1/+1
| | | | | | This caused failures of 32-bit builds. Signed-off-by: Petr Machata <[email protected]>
* Test case for handling archives with 64-bit symbol tablePetr Machata2012-08-074-2/+54
| | | | Signed-off-by: Petr Machata <[email protected]>
* Implement support for archives with 64-bit symbol tablePetr Machata2012-08-075-45/+105
| | | | Signed-off-by: Petr Machata <[email protected]>
* tests: Add run-nm-self.sh and run-readelf-self.sh tests.Mark Wielaard2012-08-035-2/+73
| | | | Signed-off-by: Mark Wielaard <[email protected]>
* tests: Introduce testrun_on_self, use it in run-elflint-self.shMark Wielaard2012-08-033-32/+26
| | | | Signed-off-by: Mark Wielaard <[email protected]>
* Reorder formatting string arguments so that there are no gaps in referencesPetr Machata2012-07-302-8/+14
| | | | | | | It is required that formatting string that uses $-style references lists all arguments. Signed-off-by: Petr Machata <[email protected]>
* readelf: Use DW_LANG_ObjC and known[op].Mark Wielaard2012-07-292-2/+7
| | | | | Not all patches from the dwarfstrings branch were applied, causing compile failures.
* config: known-dwarf.awk Fix "Generated by" header.Mark Wielaard2012-07-262-1/+6
| | | | | | | Generated header had wrong file names for config/known-dwarf.awk and libdw/dwarf.h contents. Signed-off-by: Mark Wielaard <[email protected]>
* Add DW_OP_GNU_parameter_ref to dwarf.h and handle it in readelf.Mark Wielaard2012-07-264-0/+21
| | | | | | | 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 <[email protected]>
* Correct spelling of DW_LANG_ObjC in dwarf.h.Mark Wielaard2012-07-264-2/+13
| | | | | | Fix usage in dwarf_aggregate_size. Signed-off-by: Mark Wielaard <[email protected]>
* libdw: Add DWARF4 DW_ATE_UTF.Mark Wielaard2012-07-262-0/+5
| | | | Signed-off-by: Mark Wielaard <[email protected]>
* elf_getshdr should work for elf->flags & ELF_F_MALLOCED.Mark Wielaard2012-07-248-7/+169
| | | | | Reported-by: Nick Alcock <[email protected]> Signed-off-by: Mark Wielaard <[email protected]>
* test: run-elflint-self.sh ebl shared libraries are under backends now.Mark Wielaard2012-07-192-12/+14
| | | | Signed-off-by: Mark Wielaard <[email protected]>
* test_cleanup run-unstrip-n.sh and add testcore-rtlib-ppc.bz2 to EXTRA_DIST.Mark Wielaard2012-07-193-1/+8
| | | | Signed-off-by: Mark Wielaard <[email protected]>
* Merge branch 'debug_macro'Mark Wielaard2012-07-196-2/+776
|\
| * readelf: Add .debug_macro parsing support.Mark Wielaard2012-07-116-2/+776
| | | | | | | | Signed-off-by: Mark Wielaard <[email protected]>
* | Merge branch 'gdb_index7'Mark Wielaard2012-07-197-18/+197
|\ \
| * | readelf: Add .gdb_index version 7 support.Mark Wielaard2012-07-107-18/+197
| |/ | | | | | | | | | | | | | | 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 <[email protected]>
* | Add ppc testcase for elf32_xlatetom.c fix.Mark Wielaard2012-07-173-1/+15
| | | | | | | | | | | | Fails before commit bc0f74 on x86, succeeds after. Signed-off-by: Mark Wielaard <[email protected]>
* | elf*_xlatetom: do not check ELF_T_NHDR has integer number of recordsPetr Machata2012-07-172-2/+11
| | | | | | | | | | | | | | See this bug report for more details: https://bugzilla.redhat.com/show_bug.cgi?id=835877 Signed-off-by: Petr Machata <[email protected]>
* | tests: only compile test programs when running testMike Frysinger2012-07-172-3/+7
|/ | | | | | | | | | | | 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 <[email protected]> Signed-off-by: Mark Wielaard <[email protected]>
* dwarf.h: Add DW_MACRO_GNU .debug_macro type encodings.Mark Wielaard2012-06-272-0/+19
| | | | Signed-off-by: Mark Wielaard <[email protected]>
* Add low-level support for .debug_macro.Mark Wielaard2012-06-2714-3/+96
| | | | Signed-off-by: Mark Wielaard <[email protected]>
* Add a rule to make build failure w/o --enable-maintainer-mode clearer.Roland McGrath2012-06-262-1/+12
|
* tests/low_high_pc.c: Use proper inttypes in printf formats.elfutils-0.154Mark Wielaard2012-06-222-2/+6
| | | | Signed-off-by: Mark Wielaard <[email protected]>
* readelf.c: Cast printf PRIu/x64 arguments to uint64_t for gcc 4.7 -Wformat.Mark Wielaard2012-06-222-2/+7
| | | | Signed-off-by: Mark Wielaard <[email protected]>
* Prepare 0.153 release.Mark Wielaard2012-06-2211-5926/+5954
| | | | Signed-off-by: Mark Wielaard <[email protected]>
* Update name, license and contributor policy.Mark Wielaard2012-06-05650-19554/+12134
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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 <[email protected]> Signed-off-by: Mark Wielaard <[email protected]>
* Remove .mtn-ignore and .cvsignore files.Mark Wielaard2012-06-0515-33/+0
| | | | We use .gitignore these days.
* Remove unused (generated) src/ylwrap file.Mark Wielaard2012-06-051-154/+0
| | | | | ylwrap is now placed in config through AC_CONFIG_AUX_DIR. The checked in src copy of the file wasn't used.
* TESTS_ENVIRONMENT set LC_ALL and LANG to C.Mark Wielaard2012-05-112-1/+6
| | | | | | Some tests rely on sort order and output of tools that might be localized. Reported-by: Paweł Sikora <[email protected]>
* elflint: Allow zero sized sections at (filesz) end of segment.Mark Wielaard2012-05-092-2/+9
|
* tests/low_high_pc.c: Allow highpc == lowpc for CU DIEs for buggy GCC.Mark Wielaard2012-05-072-1/+8
| | | | | 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.
* dwarf_highpc: Handle DW_AT_high_pc being a constant offset from DW_AT_low_pc.Mark Wielaard2012-04-288-8/+202
|
* Removed old libdwarf test show-ciefde.Mark Wielaard2012-04-264-556/+7
|
* readelf.c (print_ops): Add missing DW_OP_GNU operands.Mark Wielaard2012-04-242-0/+8
| | | | DW_OP_GNU_push_tls_address, DW_OP_GNU_uinit and DW_OP_GNU_encoded_addr.
* Add new run-unstrip-n.sh test for RHBZ#805447 fixed in commit 210c2f.Mark Wielaard2012-04-034-3/+64
|
* elf32_offscn.c: Do not match SHT_NOBITS sections at OFFSET.Mark Wielaard2012-04-027-3/+100
| | | | | | 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().
* elflint: Accept SHF_INFO_LINK for reloc sections.Roland McGrath2012-03-282-2/+6
|
* readelf.c: Check debug section data before trying to print abbrev or str.Mark Wielaard2012-03-282-2/+12
| | | | | | * readelf.c (print_debug_abbrev_section): Check there is Dwarf section data. (print_debug_str_section): Likewise.
* RHBZ#805447: Fix core file grokking for case of truncated .dynstrRoland McGrath2012-03-282-2/+13
|