diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2018-04-26 18:03:04 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2018-04-26 18:03:04 +0000 |
commit | ab44b923f56e70be5c9fb286cadc003115e207bd (patch) | |
tree | 8affc98f85dcc12d364fbbd81d593e5c7bcbcfe0 | |
parent | ab0cce5f1f0aac2699b9efb4c6d8021497439e9d (diff) | |
download | bcm5719-llvm-ab44b923f56e70be5c9fb286cadc003115e207bd.tar.gz bcm5719-llvm-ab44b923f56e70be5c9fb286cadc003115e207bd.zip |
Add a comment. NFC.
llvm-svn: 330967
-rw-r--r-- | lld/ELF/Relocations.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lld/ELF/Relocations.cpp b/lld/ELF/Relocations.cpp index 2863699bd5e..5f7e0083824 100644 --- a/lld/ELF/Relocations.cpp +++ b/lld/ELF/Relocations.cpp @@ -461,6 +461,11 @@ static std::vector<SharedSymbol *> getSymbolsAt(SharedSymbol &SS) { return Ret; } +// When a symbol is copy relocated or we create a canonical plt entry, it is +// effectively a defined symbol. In the case of copy relocation the symbol is +// in .bss and in the case of a canonical plt entry it is in .plt. This function +// replaces the existing symbol with a Defined pointing to the appropriate +// location. static void replaceWithDefined(Symbol &Sym, SectionBase *Sec, uint64_t Value, uint64_t Size) { Symbol Old = Sym; |