[PATCH] D10951: [LinkerScript] Fix bug in Segment::assignVirtualAddress()
Phabricator
reviews at reviews.llvm.org
Mon Jul 13 16:53:12 PDT 2015
This revision was automatically updated to reflect the committed changes.
Closed by commit rL242089: [LinkerScript] Fix bug in Segment::assignVirtualAddress() (authored by rafauler).
Changed prior to commit:
http://reviews.llvm.org/D10951?vs=29062&id=29627#toc
Repository:
rL LLVM
http://reviews.llvm.org/D10951
Files:
lld/trunk/lib/ReaderWriter/ELF/SegmentChunks.cpp
Index: lld/trunk/lib/ReaderWriter/ELF/SegmentChunks.cpp
===================================================================
--- lld/trunk/lib/ReaderWriter/ELF/SegmentChunks.cpp
+++ lld/trunk/lib/ReaderWriter/ELF/SegmentChunks.cpp
@@ -362,7 +362,7 @@
// Set the segment memory size and the virtual address.
this->setMemSize(curSliceAddress - startAddr + curSliceSize);
- this->setVirtualAddr(curSliceAddress);
+ this->setVirtualAddr(startAddr);
std::stable_sort(_segmentSlices.begin(), _segmentSlices.end(),
SegmentSlice<ELFT>::compare_slices);
}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D10951.29627.patch
Type: text/x-patch
Size: 580 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150713/4438c0bf/attachment.bin>
More information about the llvm-commits
mailing list