[PATCH] D29433: [dsymutil] Fix __LINKEDIT vmsize in dsymutil upgrade path
Steven Wu via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Feb 1 16:11:36 PST 2017
This revision was automatically updated to reflect the committed changes.
Closed by commit rL293842: [dsymutil] Fix __LINKEDIT vmsize in dsymutil upgrade path (authored by steven_wu).
Changed prior to commit:
https://reviews.llvm.org/D29433?vs=86743&id=86745#toc
Repository:
rL LLVM
https://reviews.llvm.org/D29433
Files:
llvm/trunk/tools/dsymutil/MachOUtils.cpp
Index: llvm/trunk/tools/dsymutil/MachOUtils.cpp
===================================================================
--- llvm/trunk/tools/dsymutil/MachOUtils.cpp
+++ llvm/trunk/tools/dsymutil/MachOUtils.cpp
@@ -236,6 +236,8 @@
if (StringRef("__LINKEDIT") == Segment.segname) {
Segment.fileoff = LinkeditOffset;
Segment.filesize = LinkeditSize;
+ // Resize vmsize by rounding to the page size.
+ Segment.vmsize = alignTo(LinkeditSize, 0x1000);
}
// Check if the end address of the last segment and our current
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D29433.86745.patch
Type: text/x-patch
Size: 535 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170202/b5799046/attachment.bin>
More information about the llvm-commits
mailing list