aboutsummaryrefslogtreecommitdiff
path: root/contrib/elftoolchain/nm
Commit message (Collapse)AuthorAgeFilesLines
* Remove residual blank line at start of MakefileWarner Losh2024-07-151-1/+0
| | | | | | | This is a residual of the $FreeBSD$ removal. MFC After: 3 days (though I'll just run the command on the branches) Sponsored by: Netflix
* 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
* Update to ELF Tool Chain r3668Ed Maste2019-01-101-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | Highlights: - Make sure that only TLS sections are sorted into TLS segment. - Fixed multiple errors in "Section to Segment mapping". - Man page updates - ar improvements - elfcopy: avoid filter_reloc uninitialized variable for rela - elfcopy: avoid stripping relocations from static binaries - readelf: avoid printing directory in front of absolute path - readelf: add NT_FREEBSD_FEATURE_CTL FreeBSD note type - test improvements NOTES: Some of these changes originated in FreeBSD and simply reduce diffs between contrib and vendor. ELF Tool Chain ar is not (currently) used in FreeBSD, and there are improvements in both FreeBSD and ELF Tool Chain ar that are not in the other. Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=342918
* Update ELF Tool Chain to r3614Ed Maste2018-04-271-2/+2
| | | | | | | | | MFC after: 1 week Relnotes: Yes Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=333063
* 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
* nm: document 'r' symbol typeEd Maste2017-05-221-1/+3
| | | | | | | | | PR: 219245 MFC after: 3 days Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=318603
* 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 ELF Tool Chain to upstream rev 3400Ed Maste2016-02-121-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 Notes: svn path=/head/; revision=295577
* Update to ELF Tool Chain r3197Ed Maste2015-05-141-2/+2
| | | | | | | | | | | | | 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 Notes: svn path=/head/; revision=282918
* 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-172-3/+3
| | | | | | | | | | 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-082-3/+8
| | | | | | | 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-273-0/+2443
Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=275192