elfcopy: Handle objects without a ".shstrtab" section string tableAs of LLVM revision 238073, LLVM stores symbols and section names inthe same string table. From the upstream commit mesage: Wi
elfcopy: Handle objects without a ".shstrtab" section string tableAs of LLVM revision 238073, LLVM stores symbols and section names inthe same string table. From the upstream commit mesage: With the scheme of naming sections like ".text.foo" where foo is a symbol, there is a big potential saving in using a single one.This is a cherry-pick of ELF Tool Chain revision 3225.Sponsored by: The FreeBSD Foundation
show more ...
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 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 revision 3163Most of our changes have now been committed upstream, so this change islargely bookkeeping.Sponsored by: The FreeBSD Foundation
Preserve hard & symbolic links when modifying source fileStrip is often used to modify existing files, rather than creating newfiles. If the existing file has hard links or is a symbolic link, act
Preserve hard & symbolic links when modifying source fileStrip is often used to modify existing files, rather than creating newfiles. If the existing file has hard links or is a symbolic link, act asif editing the file in place and preserve the links.Reported by: luigiReviewed by: imp, rpauloSponsored by: The FreeBSD FoundationDifferential Revision: https://reviews.freebsd.org/D1682
elfcopy: Avoid divide-by-0 on section alignment 0According to ELF ABI, alignment 0 and 1 has the same meaning: thesection has no alignment constraints.PR: 196715Sponsored by: The FreeBSD Found
elfcopy: Avoid divide-by-0 on section alignment 0According to ELF ABI, alignment 0 and 1 has the same meaning: thesection has no alignment constraints.PR: 196715Sponsored by: The FreeBSD Foundation
Update elftoolchain to upstream rev 3136This fixes two strip(1) issues found during ports exp-run and adds astring hash implementation which significantly speeds up certainoperations on objects w
Update elftoolchain to upstream rev 3136This fixes two strip(1) issues found during ports exp-run and adds astring hash implementation which significantly speeds up certainoperations 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: 196107Sponsored 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
Set up default shstrtab entries at shstrtab initializationInstead of waiting until the addition of the first non-default entry.This fixes a segfault when strip(1) is asked to remove every section
Set up default shstrtab entries at shstrtab initializationInstead of waiting until the addition of the first non-default entry.This fixes a segfault when strip(1) is asked to remove every section froman object file.Upstream elftoolchain ticket 463Reviewed by: impSponsored by: The FreeBSD FoundationDifferential Revision: https://reviews.freebsd.org/D1341
Include section name in strip warning message
Do not strip all when stripping an explicit symbolWhen requested to strip specific symbols (-N flag) the default should beto strip nothing (other than the requested symbols). This is consistentwi
Do not strip all when stripping an explicit symbolWhen requested to strip specific symbols (-N flag) the default should beto strip nothing (other than the requested symbols). This is consistentwith binutils strip(1).PR: 196038Reviewed by: impSponsored by: The FreeBSD FoundationDifferential Revision: https://reviews.freebsd.org/D1327
Correct elftoolchain strip(1) memory size calculationCalculate the segment's memory size (p_memsz) using the virtualaddresses, not the file offsets. Otherwise padding preceeding SHT_NOBITSsection
Correct elftoolchain strip(1) memory size calculationCalculate the segment's memory size (p_memsz) using the virtualaddresses, not the file offsets. Otherwise padding preceeding SHT_NOBITSsections may be excluded from the calculation, resulting in a segmentthat is too small.PR: 195653Sponsored by: The FreeBSD Foundation
Track libarchive API change
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
123