Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[obj2yaml] - Program headers: simplify the computation of p_filesz.
Currently we have computations of `p_filesz` and `p_memsz` mixed together with the use of a loop over fragments. After recent changes it is possible to avoid using a loop for the computation of `p_filesz`, since we know that fragments are sorted by their file offsets. The main benefit of this change is that splits the computation of `p_filesz` and `p_memsz` what is simpler and allows us to fix the computation of the `p_memsz` independently (D78005 shows the issue that we have currently). Differential revision: https://reviews.llvm.org/D78628
- Loading branch information
Georgii Rymar
committed
Apr 24, 2020
1 parent
1ccfe47
commit 9f9a08e
Showing
2 changed files
with
18 additions
and
14 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