summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGeorge Rimar <grimar@accesssoftek.com>2018-08-13 11:20:18 +0000
committerGeorge Rimar <grimar@accesssoftek.com>2018-08-13 11:20:18 +0000
commitb44789759b7093728849d0f4c9ae8857deea35b1 (patch)
tree75ba559673b30b211cc4593b5f7dda214eeabfe3
parent24d86d8513d59c0c294b6a3db40eebdc26f36702 (diff)
downloadbcm5719-llvm-b44789759b7093728849d0f4c9ae8857deea35b1.tar.gz
bcm5719-llvm-b44789759b7093728849d0f4c9ae8857deea35b1.zip
[LLD][ELF] - Remove dead code from handleTlsRelocation. NFC.
That piece of code is really very old and "protected" from TLS relocations against symbol in non-allocatable sections. It is useless because normally non-alloc sections have relocations with allocatable targets, but not the reverse. And so the code was simply dead. llvm-svn: 339553
-rw-r--r--lld/ELF/Relocations.cpp3
1 files changed, 0 insertions, 3 deletions
diff --git a/lld/ELF/Relocations.cpp b/lld/ELF/Relocations.cpp
index 113f871750b..8ab98c5bbc0 100644
--- a/lld/ELF/Relocations.cpp
+++ b/lld/ELF/Relocations.cpp
@@ -165,9 +165,6 @@ template <class ELFT>
static unsigned
handleTlsRelocation(RelType Type, Symbol &Sym, InputSectionBase &C,
typename ELFT::uint Offset, int64_t Addend, RelExpr Expr) {
- if (!(C.Flags & SHF_ALLOC))
- return 0;
-
if (!Sym.isTls())
return 0;
OpenPOWER on IntegriCloud