diff options
Diffstat (limited to 'llvm/lib/MC/ELFObjectWriter.cpp')
-rw-r--r-- | llvm/lib/MC/ELFObjectWriter.cpp | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/llvm/lib/MC/ELFObjectWriter.cpp b/llvm/lib/MC/ELFObjectWriter.cpp index b8ef265..5724c5c 100644 --- a/llvm/lib/MC/ELFObjectWriter.cpp +++ b/llvm/lib/MC/ELFObjectWriter.cpp @@ -193,8 +193,6 @@ public: MCSectionELF *createRelocationSection(MCContext &Ctx, const MCSectionELF &Sec); - void createMemtagRelocs(MCAssembler &Asm); - void writeSectionHeader(const MCAsmLayout &Layout, const SectionIndexMapTy &SectionIndexMap, const SectionOffsetsTy &SectionOffsets); @@ -616,23 +614,6 @@ bool ELFWriter::isInSymtab(const MCAsmLayout &Layout, const MCSymbolELF &Symbol, return true; } -void ELFWriter::createMemtagRelocs(MCAssembler &Asm) { - MCSectionELF *MemtagRelocs = nullptr; - for (const MCSymbol &Sym : Asm.symbols()) { - const auto &SymE = cast<MCSymbolELF>(Sym); - if (!SymE.isMemtag()) - continue; - if (MemtagRelocs == nullptr) { - MemtagRelocs = OWriter.TargetObjectWriter->getMemtagRelocsSection(Asm.getContext()); - if (MemtagRelocs == nullptr) - report_fatal_error("Tagged globals are not available on this architecture."); - Asm.registerSection(*MemtagRelocs); - } - ELFRelocationEntry Rec(0, &SymE, ELF::R_AARCH64_NONE, 0, nullptr, 0); - OWriter.Relocations[MemtagRelocs].push_back(Rec); - } -} - void ELFWriter::computeSymbolTable( MCAssembler &Asm, const MCAsmLayout &Layout, const SectionIndexMapTy &SectionIndexMap, const RevGroupMapTy &RevGroupMap, @@ -1094,8 +1075,6 @@ uint64_t ELFWriter::writeObject(MCAssembler &Asm, const MCAsmLayout &Layout) { Ctx.getELFSection(".strtab", ELF::SHT_STRTAB, 0); StringTableIndex = addToSectionTable(StrtabSection); - createMemtagRelocs(Asm); - RevGroupMapTy RevGroupMap; SectionIndexMapTy SectionIndexMap; |