diff options
Diffstat (limited to 'lld/ELF/OutputSections.h')
-rw-r--r-- | lld/ELF/OutputSections.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lld/ELF/OutputSections.h b/lld/ELF/OutputSections.h index d01eb7355ae..66dad5e67a1 100644 --- a/lld/ELF/OutputSections.h +++ b/lld/ELF/OutputSections.h @@ -37,6 +37,10 @@ template <class ELFT> class ObjectFile; template <class ELFT> class DefinedRegular; template <class ELFT> class ELFSymbolBody; +// Flag to force GOT to be in output if we have relocations +// that relies on its address. +extern bool HasGotOffRel; + template <class ELFT> static inline typename llvm::object::ELFFile<ELFT>::uintX_t getAddend(const typename llvm::object::ELFFile<ELFT>::Elf_Rel &Rel) { |