summaryrefslogtreecommitdiffstats
path: root/lld/ELF/Writer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lld/ELF/Writer.cpp')
-rw-r--r--lld/ELF/Writer.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/lld/ELF/Writer.cpp b/lld/ELF/Writer.cpp
index 20a1dfbc720..2c362e7f428 100644
--- a/lld/ELF/Writer.cpp
+++ b/lld/ELF/Writer.cpp
@@ -397,8 +397,9 @@ void Writer<ELFT>::scanRelocs(
// linking only.
continue;
if (Body == Config->MipsGpDisp || Body == Config->MipsLocalGp)
- // MIPS _gp_disp designates offset between start of function and gp
- // pointer into GOT therefore any relocations against it do not require
+ // MIPS _gp_disp designates offset between start of function and 'gp'
+ // pointer into GOT. __gnu_local_gp is equal to the current value of
+ // the 'gp'. Therefore any relocations against them do not require
// dynamic relocation.
continue;
}
OpenPOWER on IntegriCloud