Committed to FreeBSD as https://svnweb.freebsd.org/changeset/base/367809
Committed to FreeBSD in r366977 https://reviews.freebsd.org/rS366977
Committed to FreeBSD in r367209 https://reviews.freebsd.org/rS367209
FreeBSD patch is in review at https://reviews.freebsd.org/D23782
elfcopy: set ELF OS/ABI field when converting from binary
Sync RISC-V relocations
Further, I imagine that with SHF_COMPRESSED support in libelf we would just handle it transparently, and -z/--decompress would be a no-op.
Blog post on the support in Solaris libelf: https://blogs.oracle.com/solaris/elf_section_compression-v2