[lld] r280913 - [ELF][MIPS] Update the comment
Simon Atanasyan via llvm-commits
llvm-commits at lists.llvm.org
Thu Sep 8 02:07:12 PDT 2016
Author: atanasyan
Date: Thu Sep 8 04:07:12 2016
New Revision: 280913
URL: http://llvm.org/viewvc/llvm-project?rev=280913&view=rev
Log:
[ELF][MIPS] Update the comment
Modified:
lld/trunk/ELF/Relocations.cpp
Modified: lld/trunk/ELF/Relocations.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/Relocations.cpp?rev=280913&r1=280912&r2=280913&view=diff
==============================================================================
--- lld/trunk/ELF/Relocations.cpp (original)
+++ lld/trunk/ELF/Relocations.cpp Thu Sep 8 04:07:12 2016
@@ -658,8 +658,10 @@ static void scanRelocs(InputSectionBase<
if (refersToGotEntry(Expr)) {
if (Config->EMachine == EM_MIPS) {
- // MIPS ABI has special rules to process GOT entries
- // and doesn't require relocation entries for them.
+ // MIPS ABI has special rules to process GOT entries and doesn't
+ // require relocation entries for them. A special case is TLS
+ // relocations. In that case dynamic loader applies dynamic
+ // relocations to initialize TLS GOT entries.
// See "Global Offset Table" in Chapter 5 in the following document
// for detailed description:
// ftp://www.linux-mips.org/pub/linux/mips/doc/ABI/mipsabi.pdf
More information about the llvm-commits
mailing list