[lld] r315764 - Initialize CopyRelSec.
Rafael Espindola via llvm-commits
llvm-commits at lists.llvm.org
Fri Oct 13 14:44:11 PDT 2017
Author: rafael
Date: Fri Oct 13 14:44:10 2017
New Revision: 315764
URL: http://llvm.org/viewvc/llvm-project?rev=315764&view=rev
Log:
Initialize CopyRelSec.
It could be used uninitialized since r310079.
Modified:
lld/trunk/ELF/Symbols.h
Modified: lld/trunk/ELF/Symbols.h
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/Symbols.h?rev=315764&r1=315763&r2=315764&view=diff
==============================================================================
--- lld/trunk/ELF/Symbols.h (original)
+++ lld/trunk/ELF/Symbols.h Fri Oct 13 14:44:10 2017
@@ -256,8 +256,8 @@ public:
// This field is a pointer to the symbol's version definition.
const void *Verdef;
- // CopyRelSec and CopyRelSecOff are significant only when NeedsCopy is true.
- InputSection *CopyRelSec;
+ // If not null, there is a copy relocation to this section.
+ InputSection *CopyRelSec = nullptr;
private:
template <class ELFT> const typename ELFT::Sym &getSym() const {
More information about the llvm-commits
mailing list