-
-
Notifications
You must be signed in to change notification settings - Fork 633
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MachO::binary: add extend_section (#1137)
* MachO::Binary::add_section: respect alignment of empty sections * MachO/layout_check: relax offset continuity requirement for __text section Sections in MachO are prepended, but __text section is not moved. Due to this there might be redundant gap between __text section and a section that comes before __text. Note: we don't want to alter distance between __DATA and __text, because there might be position relative references in metadata. * tests/macho: use lief.MachO.check_layout * MachO::binary: add extend_section This commit adds member function MachO::Binary::extend_section that is able to extend sections from the first segment in MachO. * macho/test_builder: add test_extend_section
- Loading branch information
1 parent
4116633
commit 259bf70
Showing
6 changed files
with
165 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters