diff options
| author | Rui Ueyama <ruiu@google.com> | 2016-01-05 16:35:46 +0000 |
|---|---|---|
| committer | Rui Ueyama <ruiu@google.com> | 2016-01-05 16:35:46 +0000 |
| commit | f53b1b7fdea5165e63c8848eda3e12cd33c9126c (patch) | |
| tree | 14ee7cb59bc268918e55aac4e6666e5519c6ba9d | |
| parent | e57c487eee986997957c8d2b2d5e887c48df588e (diff) | |
| download | bcm5719-llvm-f53b1b7fdea5165e63c8848eda3e12cd33c9126c.tar.gz bcm5719-llvm-f53b1b7fdea5165e63c8848eda3e12cd33c9126c.zip | |
Update comments.
llvm-svn: 256845
| -rw-r--r-- | lld/ELF/MarkLive.cpp | 6 | ||||
| -rw-r--r-- | lld/ELF/Target.cpp | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/lld/ELF/MarkLive.cpp b/lld/ELF/MarkLive.cpp index 1ad9b01af4e..b719b1a09c2 100644 --- a/lld/ELF/MarkLive.cpp +++ b/lld/ELF/MarkLive.cpp @@ -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::markLive(SymbolTable<ELFT> *Symtab) { 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; diff --git a/lld/ELF/Target.cpp b/lld/ELF/Target.cpp index 8d848d040c6..8d54c93570f 100644 --- a/lld/ELF/Target.cpp +++ b/lld/ELF/Target.cpp @@ -320,7 +320,7 @@ void X86TargetInfo::writePltZeroEntry(uint8_t *Buf, uint64_t GotEntryAddr, // 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 }; |

