redballoonsecurity / ofrak

OFRAK: unpack, modify, and repack binaries.
https://ofrak.com
Other
1.87k stars 127 forks source link

General support for separate_data_sections, and new flag for keeping more sections #258

Closed EdwardLarson closed 1 year ago

EdwardLarson commented 1 year ago

One sentence summary of this PR (This should go in the CHANGELOG!)

Link to Related Issue(s) Extends and replaces https://github.com/redballoonsecurity/ofrak/pull/203

Please describe the changes in your request. The addition of the separate_data_sections functionality to the LLVM toolchain aligns it with the GNU toolchain. In both toolchains, enabling separate_data_sections requires broadening the pattern for the sections we keep from the BOM to the FEM. Per the discussion in #203, I added a separate flag that just enables that broader keep list without actually making data sections.

Anyone you think should look at this, specifically?