summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Atanasyan <simon@atanasyan.com>2016-09-08 09:07:12 +0000
committerSimon Atanasyan <simon@atanasyan.com>2016-09-08 09:07:12 +0000
commitaf52f6af22b9c1a56216bb5035f71eb71ac02fc4 (patch)
tree77922ee7dab16fec6dd5dd03c201a895fd39a066
parent3967ea05a94e1d774d94ccd6b65560f32ebd727c (diff)
downloadbcm5719-llvm-af52f6af22b9c1a56216bb5035f71eb71ac02fc4.tar.gz
bcm5719-llvm-af52f6af22b9c1a56216bb5035f71eb71ac02fc4.zip
[ELF][MIPS] Update the comment
llvm-svn: 280913
-rw-r--r--lld/ELF/Relocations.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/lld/ELF/Relocations.cpp b/lld/ELF/Relocations.cpp
index 0cd90880af2..0244f02dc3e 100644
--- a/lld/ELF/Relocations.cpp
+++ b/lld/ELF/Relocations.cpp
@@ -658,8 +658,10 @@ static void scanRelocs(InputSectionBase<ELFT> &C, ArrayRef<RelTy> Rels) {
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
OpenPOWER on IntegriCloud