m4b / goblin

An impish, cross-platform binary parsing crate, written in Rust
MIT License
1.17k stars 156 forks source link

Mach-O parser does not expose reserved section fields #380

Open turbocool3r opened 10 months ago

turbocool3r commented 10 months ago

There seems to be no way to get the reserved fields of a section without manually processing load commands.

Reserved fields have meanings for some section types like S_SYMBOL_STUBS (https://github.com/qyang-nj/llios/blob/main/macho_parser/docs/LC_DYSYMTAB.md#indirect-symbol-table).

I propose adding reserved1-3 fields to the Section type. Should I submit a PR?