MFC r348444:libelftc: Add MLINKS.
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
libelftc: bump version, tracking import in r320343
libelftc: bump version number for r317075
Install the lib/libelftc manpagesSome other manpages, e.g. c++filt reference theseMFC after: 1 week
Update to ELF Tool Chain r3490Improvements include: * readelf: report all relocation types in rel/rela for MIPS N64 * readelf: add ELFOSABI_ARM_AEABI * elfdump: add ELFOSABI_ARM_AEABI and ELFOSA
Update to ELF Tool Chain r3490Improvements include: * readelf: report all relocation types in rel/rela for MIPS N64 * readelf: add ELFOSABI_ARM_AEABI * elfdump: add ELFOSABI_ARM_AEABI and ELFOSABI_ARM * Add recent RISC-V relocations * elfcopy: use elftc_timestamp, to support SOURCE_DATE_EPOCHSponsored by: The FreeBSD Foundation
Use the in-tree sys/elf_common.h to build libelftc.This fixes build failures on older releases that lack variousdefinitions such as EM_AARCH64 (which was unfixed before this).Revert all of the r
Use the in-tree sys/elf_common.h to build libelftc.This fixes build failures on older releases that lack variousdefinitions such as EM_AARCH64 (which was unfixed before this).Revert all of the recent compatibility changes that worked around thisproblem.This uses the same method of using the in-tree header as lib/libelf,lib/libdwarf and usr.bin/readelf.Reviewed by: emasteSponsored by: EMC / Isilon Storage DivisionDifferential Revision: https://reviews.freebsd.org/D6734
Update to ELF Tool Chain r3477This fixes a EFI/PE header issue that prevented elfcopy-produced .efifiles from working with Secure Boot: Make sure section raw size is always padded to multiple o
Update to ELF Tool Chain r3477This fixes a EFI/PE header issue that prevented elfcopy-produced .efifiles from working with Secure Boot: Make sure section raw size is always padded to multiple of FileAlignment from the optional header, as requested by the PE specification. This change should reduce the diff between PE image generated by Binutils objcopy and elftoolchain elfcopy.Submitted by: kaiwReported by: ambrisko
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
elftoolchain: Use ${SRCTOP} for the top of the FreeBSD treeIt's provided by sys.mk so there's no need to derive it from ${.CURDIR}.Suggested by: ngieSponsored by: The FreeBSD FoundationDifferen
elftoolchain: Use ${SRCTOP} for the top of the FreeBSD treeIt's provided by sys.mk so there's no need to derive it from ${.CURDIR}.Suggested by: ngieSponsored by: The FreeBSD FoundationDifferential Revision: https://reviews.freebsd.org/D5998
Replace ${CURDIR}/../.. with ${CURDIR:H:H} in elftoolchainThis produces a nicer path in debug info and build logs.MFC after: 1 weekSponsored 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
First pass through library packaging.Sponsored by: The FreeBSD Foundation
Use MAN= to specify that no man page is providedNO_MAN is deprecated.Reviewed by: imp
Update elftc version to 3272M, imported in r292120
Pay attention to MK_ELFTOOLCHAIN_TOOLS so we build the desired tools.
Update to ELF Tool Chain r3223Highlights (upstream revisions): - Fix SHT_GROUP handling in elfcopy/strip (3206 3220 3221) - Misc elfcopy / strip bug fixes (3215 3216 3217) - Many C++ demangler i
Update to ELF Tool Chain r3223Highlights (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 notavailable during the bootstrap build. It is also convenient to be ableto build on older hosts.Thanks to antoine@ for tracking down issues through multiple exp-runsand to kaiw@ for fixing.PR: 198611 (exp-run), 200350Sponsored 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 reported elftoolchain version to 3179Missed in r280932
Update elftoolchain to upstream revision 3163Most of our changes have now been committed upstream, so this change islargely bookkeeping.Sponsored by: The FreeBSD Foundation
Update reported elftoolchain versionThe last elftoolchain update is upstream rev 3136. Update our reportedversion and add M (Modified) suffix as our elftoolchain containsadditional fixes not yet
Update reported elftoolchain versionThe last elftoolchain update is upstream rev 3136. Update our reportedversion and add M (Modified) suffix as our elftoolchain containsadditional fixes not yet committed upstream.Sponsored by: The FreeBSD Foundation
Update elftoolchain to upstream rev 3130This includes a number of libdwarf improvements (particularly DWARF4related) and updates to elftoolchain tools such as strip(1). It alsoincludes a large nu
Update elftoolchain to upstream rev 3130This includes a number of libdwarf improvements (particularly DWARF4related) and updates to elftoolchain tools such as strip(1). It alsoincludes a large number of miscellaneous fixes (memory leaks, sign andcast warnings, integer overflow and underflow, etc.).This is a merge of r276167,276170-276172 from theprojects/elftoolchain-update-r3130 branch.Sponsored by: The FreeBSD Foundation
Build infrastructure for elftoolchain toolsSet WITH_ELFTOOLCHAIN_TOOLS in src.conf to use the elftoolchain versionof the following tools: * addr2line * elfcopy (strip / mcs) * nm * size * st
Build infrastructure for elftoolchain toolsSet WITH_ELFTOOLCHAIN_TOOLS in src.conf to use the elftoolchain versionof the following tools: * addr2line * elfcopy (strip / mcs) * nm * size * stringsReviewed by: bapt (earlier version)Sponsored by: The FreeBSD FoundationDifferential Revision: https://reviews.freebsd.org/D1224