MFC r339473,r340075,r342918,r343592,r343593,r343614,r343665,r343669:MFC a number of changes to elftoolchain/readelf(1). This brings the copy ofelftoolchain more in line with the version in ^/head
MFC r339473,r340075,r342918,r343592,r343593,r343614,r343665,r343669:MFC a number of changes to elftoolchain/readelf(1). This brings the copy ofelftoolchain more in line with the version in ^/head and partially fixesthe issue with `sys.kern.coredump_phnum_test.coredump_phnum` on ^/stable/12.Tested with: make tinderboxr339473 (by emaste):libelf: also test for 64-bit ELF in _libelf_is_mips64elAlthough _libelf_is_mips64el is only called in contexts where we'vealready checked that e_class is ELFCLASS64 but this may change in thefuture. Add a safety belt so that we don't access an invalid e_ehdr64union member if it does.r340075 (by emaste):readelf: decode R_MIPS_HIGHER and R_MIPS_HIGHEST relocation typesr342918 (by emaste):Update to ELF Tool Chain r3668Highlights:- 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 improvementsNOTES:Some of these changes originated in FreeBSD and simply reduce diffsbetween contrib and vendor.ELF Tool Chain ar is not (currently) used in FreeBSD, and there areimprovements in both FreeBSD and ELF Tool Chain ar that are not inthe other.r343592 (by emaste):readelf: decode flag bits in DT_FLAGS/DT_FLAGS_1Decode d_val when the tag is DT_FLAGS or DT_FLAGS_1 based on theinformation at:https://docs.oracle.com/cd/E23824_01/html/819-0690/chapter6-42444.htmlPR: 232983r343593 (by emaste):readelf: fix i386 buildUse %jx and (uintmax_t) cast.PR: 232983MFC with: r343592r343614 (by emaste):readelf: dump elf note dataOutput format is compatible with GNU readelf's handling of unknown notetypes (modulo a GNU char signedness bug); future changes will add type-specific decoding.Relnotes: Yesr343665 (by emaste):readelf: use table-based DT_FLAGS and DT_FLAGS_1 decodingFewer lines of code and more maintainable.r343669 (by emaste):readelf: decode FreeBSD note typesDecode NT_FREEBSD_ABI_TAG, NT_FREEBSD_ARCH_TAG, and NT_FREEBSD_FEATURE_CTL.Relnotes: Yes
show more ...
Update ELF Tool Chain to r3614MFC after: 1 weekRelnotes: YesSponsored by: The FreeBSD Foundation
Update ELF Tool Chain to upstream r3520Highlights of changes between r3490 and r3520:- Improve C++ demangling- Improve compatibility with Binutils tools wrt. error messages- Handle additional t
Update ELF Tool Chain to upstream r3520Highlights 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 usePR: 218395MFC after: 2 weeksRelnotes: YesSponsored by: The FreeBSD Foundation
strings: avoid unnecessary trip through handle_file for stdinSponsored by: The FreeBSD Foundation
strings: fix exit status if a file before the last one failsPreviously a command like "strings f1 f2 f3" reported the exit statusbased only on processing the last file.As with GNU strings, repor
strings: fix exit status if a file before the last one failsPreviously a command like "strings f1 f2 f3" reported the exit statusbased only on processing the last file.As with GNU strings, report an error exit status if an error wasencountered processing any of the files. While here simplify theexit status handling to just success (0) / failure (1).Reviewed by: brooksMFC after: 1 monthSponsored by: The FreeBSD FoundationDifferential Revision: https://reviews.freebsd.org/D8334
Update to ELF Tool Chain r3475Improvements include: * Add support for reporting and handling a number of new constants in various tools, including: * CloudABI OSABI * DT_TLSDESC_*
Update to ELF Tool Chain r3475Improvements 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 toolsThis update also reduces diffs against upstream as a number of fixesincluded in upstream were previously cherry-picked into FreeBSD.Sponsored by: The FreeBSD Foundation
Update ELF Tool Chain to upstream rev 3400Some notable improvements include:readelf:- Add AArch64 relocation definitions.- Report value of unknown relocation types.elfcopy:- Consider symbols
Update ELF Tool Chain to upstream rev 3400Some 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 r3197Highlights: - 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 elfco
Update to ELF Tool Chain r3197Highlights: - 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 addr2lineSponsored by: The FreeBSD Foundation
Update elftoolchain to upstream revision 3179Some notable changes:- libdwarf: Fixed DWARF4 line section- elfcopy: Implement --localize-hidden- nm: handle object name referenced by DW_AT_specific
Update elftoolchain to upstream revision 3179Some 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 comparisonRelnotes: YesSponsored by: The FreeBSD Foundation
Update elftoolchain to upstream rev 3130This brings a number of fixes to elfcopy/strip and DWARF4 improvements.Sponsored by: The FreeBSD Foundation
Fix elftoolchain tools in-tree build * make variables static * add header for uint*_t typedefs
Copy elftoolchain binutils replacements from vendor branchSponsored by: The FreeBSD Foundation