[lld] r191207 - [lld][ELF] Remove invalid comment
Shankar Easwaran
shankare at codeaurora.org
Mon Sep 23 09:28:23 PDT 2013
Author: shankare
Date: Mon Sep 23 11:28:23 2013
New Revision: 191207
URL: http://llvm.org/viewvc/llvm-project?rev=191207&view=rev
Log:
[lld][ELF] Remove invalid comment
Modified:
lld/trunk/lib/ReaderWriter/ELF/DefaultLayout.h
Modified: lld/trunk/lib/ReaderWriter/ELF/DefaultLayout.h
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/lib/ReaderWriter/ELF/DefaultLayout.h?rev=191207&r1=191206&r2=191207&view=diff
==============================================================================
--- lld/trunk/lib/ReaderWriter/ELF/DefaultLayout.h (original)
+++ lld/trunk/lib/ReaderWriter/ELF/DefaultLayout.h Mon Sep 23 11:28:23 2013
@@ -757,11 +757,9 @@ DefaultLayout<ELFT>::assignVirtualAddres
continue;
if (si->segmentType() == llvm::ELF::PT_NULL) {
+ // Handle Non allocatable sections.
uint64_t nonLoadableAddr = 0;
si->setVAddr(nonLoadableAddr);
- // The first segment has the virtualAddress set to the base address as
- // we have added the file header and the program header dont align the
- // first segment to the pagesize
si->assignVirtualAddress(nonLoadableAddr);
} else {
si->setVAddr(virtualAddress);
More information about the llvm-commits
mailing list