blob: a81eab9ca296bee20dc6cbc5af8546abb639d335 [file] [log] [blame]
Rafael Espindola6b5e56c2010-12-17 17:45:22 +00001//===-- MCELFObjectTargetWriter.cpp - ELF Target Writer Subclass ----------===//
2//
Chandler Carruth2946cd72019-01-19 08:50:56 +00003// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4// See https://llvm.org/LICENSE.txt for license information.
5// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
Rafael Espindola6b5e56c2010-12-17 17:45:22 +00006//
7//===----------------------------------------------------------------------===//
8
9#include "llvm/MC/MCELFObjectWriter.h"
10
11using namespace llvm;
12
Simon Atanasyan9f676a72017-09-21 14:04:47 +000013MCELFObjectTargetWriter::MCELFObjectTargetWriter(bool Is64Bit_, uint8_t OSABI_,
Rafael Espindolafdaae0d2010-12-18 03:27:34 +000014 uint16_t EMachine_,
Konstantin Zhuravlyove0484eb2019-02-14 22:42:09 +000015 bool HasRelocationAddend_,
16 uint8_t ABIVersion_)
17 : OSABI(OSABI_), ABIVersion(ABIVersion_), EMachine(EMachine_),
Simon Atanasyan9f676a72017-09-21 14:04:47 +000018 HasRelocationAddend(HasRelocationAddend_), Is64Bit(Is64Bit_) {}
Rafael Espindola6b5e56c2010-12-17 17:45:22 +000019
Rafael Espindolaece40ca2015-05-29 18:26:09 +000020bool MCELFObjectTargetWriter::needsRelocateWithSymbol(const MCSymbol &Sym,
Ulrich Weigand46797c62014-07-20 23:15:06 +000021 unsigned Type) const {
Rafael Espindola5904e122014-03-29 06:26:49 +000022 return false;
Akira Hatanaka64ad2cf2012-03-23 23:06:45 +000023}
Petar Jovanovic0380d0b2015-04-14 13:23:34 +000024
Petar Jovanovic0380d0b2015-04-14 13:23:34 +000025void
26MCELFObjectTargetWriter::sortRelocs(const MCAssembler &Asm,
27 std::vector<ELFRelocationEntry> &Relocs) {
Petar Jovanovic0380d0b2015-04-14 13:23:34 +000028}
Eric Christopherfe832702018-09-06 22:09:31 +000029
30void MCELFObjectTargetWriter::addTargetSectionFlags(MCContext &Ctx,
31 MCSectionELF &Sec) {}