diff options
Diffstat (limited to 'llvm/lib/Target/X86/X86AsmBackend.cpp')
-rw-r--r-- | llvm/lib/Target/X86/X86AsmBackend.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/llvm/lib/Target/X86/X86AsmBackend.cpp b/llvm/lib/Target/X86/X86AsmBackend.cpp index 4b51b69dc2d..231f151206b 100644 --- a/llvm/lib/Target/X86/X86AsmBackend.cpp +++ b/llvm/lib/Target/X86/X86AsmBackend.cpp @@ -191,6 +191,12 @@ public: : X86AsmBackend(T), OSType(_OSType) { HasAbsolutizedSet = true; HasScatteredSymbols = true; + HasReliableSymbolDifference = true; + } + + virtual bool doesSectionRequireSymbols(const MCSection &Section) const { + const MCSectionELF &ES = static_cast<const MCSectionELF&>(Section); + return ES.getFlags() & MCSectionELF::SHF_MERGE; } bool isVirtualSection(const MCSection &Section) const { |