aboutsummaryrefslogtreecommitdiff
path: root/contrib/elftoolchain/nm/nm.c
Commit message (Collapse)AuthorAgeFilesLines
* Update ELF Tool Chain to upstream r3769Ed Maste2019-12-051-3/+2
| | | | | | | | | This contains many small bugfixes and documentation improvements. Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=355413
* Capsicumize nm(1).Mark Johnston2019-09-301-1/+40
| | | | | | | | | Reviewed by: emaste Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D21107 Notes: svn path=/head/; revision=352909
* nm: Adjust argc and argv in get_opt().Mark Johnston2019-09-301-7/+9
| | | | | | | | | | | This refactoring makes it slightly easier to capsicumize nm(1). Discussed with: emaste MFC after: 1 week Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=352908
* elftoolchain nm(1): Initialize allocated memory before useConrad Meyer2018-03-161-3/+6
| | | | | | | | | | | | | | | | | In out of memory scenarios (where one of these allocations failed but other(s) did not), nm(1) could reference the uninitialized value of these allocations (undefined behavior). Always initialize any successful allocations as the most expedient resolution of the issue. However, I would encourage upstream elftoolchain contributors to clean up the error path to just abort immediately, rather than proceeding sloppily when one allocation fails. Reported by: Coverity Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=331078
* Update ELF Tool Chain to upstream r3520Ed Maste2017-04-171-2/+2
| | | | | | | | | | | | | | | | | Highlights of changes between r3490 and r3520: - Improve C++ demangling - Improve compatibility with Binutils tools wrt. error messages - Handle additional types/sections/etc. in readelf and elfdump - addr2line, cxxfilt: use setvbuf to set line buffering for filter use PR: 218395 MFC after: 2 weeks Relnotes: Yes Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=317075
* Update to ELF Tool Chain r3475Ed Maste2016-05-201-4/+5
| | | | | | | | | | | | | | | | | | | | | | | | 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 Notes: svn path=/head/; revision=300311
* Update elftoolchain to upstream revision 3179Ed Maste2015-04-011-23/+44
| | | | | | | | | | | | | | | | 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 Notes: svn path=/head/; revision=280932
* nm: avoid crash in print_lineno if func->name is NULLEd Maste2015-02-251-1/+2
| | | | | | | | | | | | | | | | | | | | This can occur when DW_AT_specification is used to refer to another DIE that provides the actual DW_AT_name string. For example: < 3><0x00000086> DW_TAG_subprogram DW_AT_name PrettyStackTraceEntry ... < 1><0x00002cf4> DW_TAG_subprogram DW_AT_specification <0x00000086> We will need to add support for DW_AT_specification, but in the interim we should not segfault. Obtained from: Elftoolchain (r3170) Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=279298
* Update elftoolchain to upstream revision 3163Ed Maste2015-02-171-1/+1
| | | | | | | | | | Most of our changes have now been committed upstream, so this change is largely bookkeeping. Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=278904
* nm: Accept long option --extern-only for -gEd Maste2015-01-081-1/+2
| | | | | | | Submitted by: jkim Notes: svn path=/head/; revision=276821
* Update elftoolchain to upstream rev 3130Ed Maste2014-12-241-1/+1
| | | | | | | | | This brings a number of fixes to elfcopy/strip and DWARF4 improvements. Sponsored by: The FreeBSD Foundation Notes: svn path=/projects/elftoolchain-update-r3130/; revision=276167
* Fix elftoolchain tools in-tree buildEd Maste2014-12-011-1/+1
| | | | | | | | * make variables static * add header for uint*_t typedefs Notes: svn path=/head/; revision=275369
* Copy elftoolchain binutils replacements from vendor branchEd Maste2014-11-271-0/+2096
Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=275192