blob: 9ad7f8c123a27d707a16312397b67649cf0d4f33 [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_,
Simon Atanasyan9f676a72017-09-21 14:04:47 +000015 bool HasRelocationAddend_)
16 : OSABI(OSABI_), EMachine(EMachine_),
17 HasRelocationAddend(HasRelocationAddend_), Is64Bit(Is64Bit_) {}
Rafael Espindola6b5e56c2010-12-17 17:45:22 +000018
Rafael Espindolaece40ca2015-05-29 18:26:09 +000019bool MCELFObjectTargetWriter::needsRelocateWithSymbol(const MCSymbol &Sym,
Ulrich Weigand46797c62014-07-20 23:15:06 +000020 unsigned Type) const {
Rafael Espindola5904e122014-03-29 06:26:49 +000021 return false;
Akira Hatanaka64ad2cf2012-03-23 23:06:45 +000022}
Petar Jovanovic0380d0b2015-04-14 13:23:34 +000023
Petar Jovanovic0380d0b2015-04-14 13:23:34 +000024void
25MCELFObjectTargetWriter::sortRelocs(const MCAssembler &Asm,
26 std::vector<ELFRelocationEntry> &Relocs) {
Petar Jovanovic0380d0b2015-04-14 13:23:34 +000027}
Eric Christopherfe832702018-09-06 22:09:31 +000028
29void MCELFObjectTargetWriter::addTargetSectionFlags(MCContext &Ctx,
30 MCSectionELF &Sec) {}