Files
ajwerner f54ea5532c read/macho: support Go's debug section compression (#697)
When using compression, debug sections in Mach-O produced by the go
compiler have a __zdebug_ section name prefix, and the section data has
the same format as GNU .zdebug_ compression for ELF.

Support these section names in `Object::section_by_name`, and support
the compressed section data in `ObjectSection::compressed_data`.

This commit extracts the GNU-style section compression logic from the
read::elf::section to a module underneath read, and then uses it also
in read::macho.
2024-06-25 12:48:33 +10:00

6 lines
57 B
Rust

#![cfg(feature = "read")]
mod coff;
mod elf;
mod macho;