summaryrefslogtreecommitdiffstats
path: root/contrib/elftoolchain/libdwarf
Commit message (Collapse)AuthorAgeFilesLines
* elftoolchain: backwards compatability for EM_IAMCU definitionemaste2016-05-201-0/+5
| | | | It is not provided by sys/elf_common.h on older stable/10.
* Update to ELF Tool Chain r3475emaste2016-05-202-41/+67
| | | | | | | | | | | | | | | | | | | | | Improvements include: * Add support for reporting and handling a number of new constants in various tools, including: * CloudABI OSABI * DT_TLSDESC_* * i386, MIPS, SPARC and amd64 relocations * C++ demangler bug fixes * Man page updates * Improved input validation in several tools This update also reduces diffs against upstream as a number of fixes included in upstream were previously cherry-picked into FreeBSD. Sponsored by: The FreeBSD Foundation
* libdwarf: fix SHT_REL relocation processingemaste2016-03-111-3/+12
| | | | | | | Relocation of type SHT_REL must use the current value as addend. PR: 204084 Obtained from: NetBSD libdwarf_elf_init.c v1.4
* Update ELF Tool Chain to upstream rev 3400emaste2016-02-126-16/+28
| | | | | | | | | | | | | | | | | | | | | | | | | Some notable improvements include: readelf: - Add AArch64 relocation definitions. - Report value of unknown relocation types. elfcopy: - Consider symbols with STB_GNU_UNIQUE binding as global symbols. - Fixed support for VMA adjustment for loadable sections found in relocatable objects. - Handle nameless global symbols. - Improve wildcard matching for !-prefixed symbols. - Add PE/COFF support. elfdump: - Improve section type reporting. - Add MIPS-specific section types. This update also includes a significant number of bug fixes. PR: 207091 [exp-run] Sponsored by: The FreeBSD Foundation
* Update to ELF Tool Chain r3250emaste2015-10-091-1/+1
| | | | | | | | | Highlights (not already in the FreeBSD tree): - addr2line: Fixed multiple memory leaks related to DIE allocation - readelf: improve sh_link validation - various man page improvements Sponsored by: The FreeBSD Foundation
* Fix endless recursion in dwarf_get_section_max_offsets(), found by clangdim2015-06-231-2/+2
| | | | | | 3.7.0. Reviewed by: emaste
* Update to ELF Tool Chain r3223emaste2015-05-271-1/+2
| | | | | | | | | | | | | | | | | | | | | | Highlights (upstream revisions): - Fix SHT_GROUP handling in elfcopy/strip (3206 3220 3221) - Misc elfcopy / strip bug fixes (3215 3216 3217) - Many C++ demangler improvements (3199 3200 3201 3202 3203 3204 3205 3208 3210 3211 3212) - Improve GNU binutils compatibility in elfcopy / strip (3213 3214) - Add -g option to readelf(1): dump contents of section groups (3219) - Add EM_IAMCU 32-bit Intel MCU (3198) Also add a compat #define for building with older FreeBSD ELF headers. The GRP_COMDAT flag was added to elf_common.h in r283110, but it's not available during the bootstrap build. It is also convenient to be able to build on older hosts. Thanks to antoine@ for tracking down issues through multiple exp-runs and to kaiw@ for fixing. PR: 198611 (exp-run), 200350 Sponsored by: The FreeBSD Foundation
* Update to ELF Tool Chain r3197emaste2015-05-1416-38/+39
| | | | | | | | | | Highlights: - Fix man page markup, whitespace, and typos - Fix sh_info of SHT_GROUP section to point to the correct string - Improve validation in readelf and elfcopy/strip - Handle DWARF 4's DW_AT_high_pc in addr2line Sponsored by: The FreeBSD Foundation
* Update elftoolchain to upstream revision 3179emaste2015-04-013-5/+12
| | | | | | | | | | | | | Some notable changes: - libdwarf: Fixed DWARF4 line section - elfcopy: Implement --localize-hidden - nm: handle object name referenced by DW_AT_specification - elfcopy: Add --strip-dwo and --extract-dwo options for split DWARF - readelf: add remaining arm64 dynamic relocation names - nm: Avoid integer overflow in value comparison Relnotes: Yes Sponsored by: The FreeBSD Foundation
* Update elftoolchain to upstream revision 3163emaste2015-02-1713-15/+15
| | | | | | | Most of our changes have now been committed upstream, so this change is largely bookkeeping. Sponsored by: The FreeBSD Foundation
* libdwarf: Handle .rel relocationsemaste2015-02-125-33/+50
| | | | | | | | | | | | | Some architectures use .rel relocations (for debug data), so they must be handled. This was discovered from ctfconvert on ARM object files. The lack of relocation handling caused all string lookups to return the string at offset 0 in .debug_str, typically "FreeBSD clang version ..." Reviewed by: gnn, imp, rpaulo (earlier version) Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D1819
* libdwarf: Add symbol value when processing .rela relocationsemaste2015-02-111-2/+6
| | | | | | Reviewed by: kib, rpaulo Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D1826
* libdwarf: Add aarch64 relocation supportemaste2015-02-112-0/+9
| | | | | | Reviewed by: andrew, rpaulo Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D1817
* libdwarf: add missing breakemaste2015-01-131-0/+1
| | | | | | | Reported by: Coverity CID: 1193315 MFC after: 1 week Sponsored by: The FreeBSD Foundation
* Update elftoolchain to upstream rev 3136emaste2014-12-303-11/+9
| | | | | | | | | | | | This fixes two strip(1) issues found during ports exp-run and adds a string hash implementation which significantly speeds up certain operations on objects with large numbers of symbols. This also improves libdwarf handling for stripped objects with .eh_frame or .debug_frame (but not other debug) sections. PR: 196107 Sponsored by: The FreeBSD Foundation
* Update elftoolchain to upstream rev 3130emaste2014-12-2939-502/+1829
|\ | | | | | | | | | | | | | | | | | | | | | | This includes a number of libdwarf improvements (particularly DWARF4 related) and updates to elftoolchain tools such as strip(1). It also includes a large number of miscellaneous fixes (memory leaks, sign and cast warnings, integer overflow and underflow, etc.). This is a merge of r276167,276170-276172 from the projects/elftoolchain-update-r3130 branch. Sponsored by: The FreeBSD Foundation
| * Update elftoolchain to upstream rev 3130emaste2014-12-2439-502/+1829
| | | | | | | | | | | | This brings a number of fixes to elfcopy/strip and DWARF4 improvements. Sponsored by: The FreeBSD Foundation
* | mdoc fixesbapt2014-12-264-0/+4
|/
* Remove trailing whitespace.kaiw2014-01-211-1/+1
|
* * Allow API dwarf_loclist_n() and dwarf_loclist() to be called withkaiw2014-01-191-2/+27
| | | | | | | attributes that have form DW_FORM_sec_offset. * If the .debug_info section conforms to DWARF4, do not allow the value of attributes with form DW_FORM_data[48] to be used as section offset.
* Add a sanity check: The provided offset for the desired location listkaiw2014-01-191-0/+5
| | | | should not exceed the size of the .debug_loc section.
* API dwarf_attrval_flag() should properly handle an attribute withkaiw2014-01-182-7/+23
| | | | | | | | (DWARF4) form DW_FORM_flag_present which implicitly indicates the presence of the attribute. Manual page is updated to reflect this change. Note that this was previously fixed in the old libdwarf.
* Fix typo: the public API dwarf_child() should return DW_DLV_NO_ENTRYkaiw2014-01-181-1/+1
| | | | instead of DW_DLE_NO_ENTRY when a child DIE is not found.
* Fix a warning in libdwarf found by -Wmissing-variable-declarations.kaiw2014-01-181-1/+1
|
* Copy libelf, libdwarf and common files from vendor/ to contrib/.kaiw2014-01-15192-0/+34871
OpenPOWER on IntegriCloud