[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
Please sign in to comment