[lld] r256845 - Update comments.
Rui Ueyama via llvm-commits
llvm-commits at lists.llvm.org
Tue Jan 5 08:35:46 PST 2016
Author: ruiu
Date: Tue Jan 5 10:35:46 2016
New Revision: 256845
URL: http://llvm.org/viewvc/llvm-project?rev=256845&view=rev
Log:
Update comments.
Modified:
lld/trunk/ELF/MarkLive.cpp
lld/trunk/ELF/Target.cpp
Modified: lld/trunk/ELF/MarkLive.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/MarkLive.cpp?rev=256845&r1=256844&r2=256845&view=diff
==============================================================================
--- lld/trunk/ELF/MarkLive.cpp (original)
+++ lld/trunk/ELF/MarkLive.cpp Tue Jan 5 10:35:46 2016
@@ -16,7 +16,7 @@
// by default. Starting with GC-root symbols or sections, markLive function
// defined in this file visits all reachable sections to set their Live
// bits. Writer will then ignore sections whose Live bits are off, so that
-// such sections are removed from output.
+// such sections are not included into output.
//
//===----------------------------------------------------------------------===//
@@ -37,7 +37,7 @@ using namespace llvm::object;
using namespace lld;
using namespace lld::elf2;
-// Calls Fn for each section that Sec refers to.
+// Calls Fn for each section that Sec refers to via relocations.
template <class ELFT>
static void forEachSuccessor(InputSection<ELFT> *Sec,
std::function<void(InputSectionBase<ELFT> *)> Fn) {
@@ -104,7 +104,7 @@ template <class ELFT> void lld::elf2::ma
MarkSymbol(Symtab->find(S));
// Preserve externally-visible symbols if the symbols defined by this
- // file could override other ELF file's symbols at runtime.
+ // file can interrupt other ELF file's symbols at runtime.
if (Config->Shared || Config->ExportDynamic) {
for (const std::pair<StringRef, Symbol *> &P : Symtab->getSymbols()) {
SymbolBody *B = P.second->Body;
Modified: lld/trunk/ELF/Target.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/Target.cpp?rev=256845&r1=256844&r2=256845&view=diff
==============================================================================
--- lld/trunk/ELF/Target.cpp (original)
+++ lld/trunk/ELF/Target.cpp Tue Jan 5 10:35:46 2016
@@ -320,7 +320,7 @@ void X86TargetInfo::writePltZeroEntry(ui
// separate procedure linkage tables.
if (Config->Shared) {
const uint8_t V[] = {
- 0xff, 0xb3, 0x04, 0x00, 0x00, 0x00, // pushl 4(%ebx
+ 0xff, 0xb3, 0x04, 0x00, 0x00, 0x00, // pushl 4(%ebx)
0xff, 0xa3, 0x08, 0x00, 0x00, 0x00, // jmp *8(%ebx)
0x90, 0x90, 0x90, 0x90 // nop;nop;nop;nop
};
More information about the llvm-commits
mailing list