diff options
author | Jez Ng <jezng@fb.com> | 2020-07-28 09:56:55 -0700 |
---|---|---|
committer | Jez Ng <jezng@fb.com> | 2020-07-28 10:02:19 -0700 |
commit | d32e32500f92602ccedcf967df2915da6f3803d2 (patch) | |
tree | 68cd6850eb6e883225c3b0d5fde897d3f1c36a35 /.git-blame-ignore-revs | |
parent | 4853a86022feee1b16249cc7a0ea12c842fa5986 (diff) | |
download | llvm-d32e32500f92602ccedcf967df2915da6f3803d2.tar.gz |
[lld-macho] Fix segment filesize calculation
The previous approach of adding up the file sizes of the
component sections ignored the fact that the sections did not have to be
contiguous in the file. As such, it was underestimating the true size.
I discovered this issue because `codesign` checks whether `__LINKEDIT`
extends to the end of the file. Since we were underestimating segment
sizes, this check failed.
Reviewed By: #lld-macho, compnerd
Differential Revision: https://reviews.llvm.org/D84574
Diffstat (limited to '.git-blame-ignore-revs')
0 files changed, 0 insertions, 0 deletions