projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ab0cce5
)
Add a comment. NFC.
author
Rafael Espindola
<rafael.espindola@gmail.com>
Thu, 26 Apr 2018 18:03:04 +0000
(18:03 +0000)
committer
Rafael Espindola
<rafael.espindola@gmail.com>
Thu, 26 Apr 2018 18:03:04 +0000
(18:03 +0000)
llvm-svn: 330967
lld/ELF/Relocations.cpp
patch
|
blob
|
history
diff --git
a/lld/ELF/Relocations.cpp
b/lld/ELF/Relocations.cpp
index
2863699
..
5f7e008
100644
(file)
--- 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;