Created attachment 213104 [details] dwz port shar Included here is a shar for a new port, devel/dwz. dwz is a program that attempts to optimize DWARF debugging information contained in ELF shared libraries and ELF executables for size, by replacing DWARF information representation with equivalent smaller representation where possible and by reducing the amount of duplication using techniques from DWARF standard appendix E - creating DW_TAG_partial_unit compilation units (CUs) for duplicated information and using DW_TAG_imported_unit to import it into each CU that needs it. This is a port of the OpenBSD port of dwz. Let me know if there's anything else I need to do.
A commit references this bug: Author: amdmi3 Date: Thu Feb 18 19:44:41 UTC 2021 New revision: 565971 URL: https://svnweb.freebsd.org/changeset/ports/565971 Log: - Add devel/dwz: DWARF optimization and duplicate removal tool dwz is a program that attempts to optimize DWARF debugging information contained in ELF shared libraries and ELF executables for size, by replacing DWARF information representation with equivalent smaller representation where possible and by reducing the amount of duplication using techniques from DWARF standard appendix E - creating DW_TAG_partial_unit compilation units (CUs) for duplicated information and using DW_TAG_imported_unit to import it into each CU that needs it. WWW: https://sourceware.org/dwz/ PR: 245382 Submitted by: bcallah@openbsd.org Changes: head/devel/Makefile head/devel/dwz/ head/devel/dwz/Makefile head/devel/dwz/distinfo head/devel/dwz/files/ head/devel/dwz/files/patch-Makefile head/devel/dwz/files/patch-dwz.c head/devel/dwz/files/patch-hashtab.c head/devel/dwz/files/patch-obstack.c head/devel/dwz/files/patch-obstack.h head/devel/dwz/files/patch-sha1.c head/devel/dwz/pkg-descr head/devel/dwz/pkg-plist
Committed, thanks! Would be nice if at least some patches could be upstreamed.