mirror of
https://github.com/encounter/object.git
synced 2026-03-30 11:32:22 -07:00
f54ea5532c
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.
6 lines
57 B
Rust
6 lines
57 B
Rust
#![cfg(feature = "read")]
|
|
|
|
mod coff;
|
|
mod elf;
|
|
mod macho;
|