10b57cec5SDimitry Andric //===-- MCELFObjectTargetWriter.cpp - ELF Target Writer Subclass ----------===//
20b57cec5SDimitry Andric //
30b57cec5SDimitry Andric // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
40b57cec5SDimitry Andric // See https://llvm.org/LICENSE.txt for license information.
50b57cec5SDimitry Andric // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
60b57cec5SDimitry Andric //
70b57cec5SDimitry Andric //===----------------------------------------------------------------------===//
80b57cec5SDimitry Andric
90b57cec5SDimitry Andric #include "llvm/MC/MCELFObjectWriter.h"
100b57cec5SDimitry Andric
110b57cec5SDimitry Andric using namespace llvm;
120b57cec5SDimitry Andric
MCELFObjectTargetWriter(bool Is64Bit_,uint8_t OSABI_,uint16_t EMachine_,bool HasRelocationAddend_,uint8_t ABIVersion_)130b57cec5SDimitry Andric MCELFObjectTargetWriter::MCELFObjectTargetWriter(bool Is64Bit_, uint8_t OSABI_,
140b57cec5SDimitry Andric uint16_t EMachine_,
150b57cec5SDimitry Andric bool HasRelocationAddend_,
160b57cec5SDimitry Andric uint8_t ABIVersion_)
170b57cec5SDimitry Andric : OSABI(OSABI_), ABIVersion(ABIVersion_), EMachine(EMachine_),
180b57cec5SDimitry Andric HasRelocationAddend(HasRelocationAddend_), Is64Bit(Is64Bit_) {}
190b57cec5SDimitry Andric
needsRelocateWithSymbol(const MCValue &,const MCSymbol &,unsigned Type) const20*5f757f3fSDimitry Andric bool MCELFObjectTargetWriter::needsRelocateWithSymbol(const MCValue &,
21*5f757f3fSDimitry Andric const MCSymbol &,
220b57cec5SDimitry Andric unsigned Type) const {
230b57cec5SDimitry Andric return false;
240b57cec5SDimitry Andric }
250b57cec5SDimitry Andric
260b57cec5SDimitry Andric void
sortRelocs(const MCAssembler & Asm,std::vector<ELFRelocationEntry> & Relocs)270b57cec5SDimitry Andric MCELFObjectTargetWriter::sortRelocs(const MCAssembler &Asm,
280b57cec5SDimitry Andric std::vector<ELFRelocationEntry> &Relocs) {
290b57cec5SDimitry Andric }
300b57cec5SDimitry Andric
addTargetSectionFlags(MCContext & Ctx,MCSectionELF & Sec)310b57cec5SDimitry Andric void MCELFObjectTargetWriter::addTargetSectionFlags(MCContext &Ctx,
320b57cec5SDimitry Andric MCSectionELF &Sec) {}
33