2011-02-20 07:57:14 -05:00
|
|
|
//===-- MCELFObjectTargetWriter.cpp - ELF Target Writer Subclass ----------===//
|
|
|
|
|
//
|
|
|
|
|
// The LLVM Compiler Infrastructure
|
|
|
|
|
//
|
|
|
|
|
// This file is distributed under the University of Illinois Open Source
|
|
|
|
|
// License. See LICENSE.TXT for details.
|
|
|
|
|
//
|
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
|
2012-04-14 09:54:10 -04:00
|
|
|
#include "llvm/ADT/STLExtras.h"
|
2011-02-20 07:57:14 -05:00
|
|
|
#include "llvm/MC/MCELFObjectWriter.h"
|
2012-12-02 08:10:19 -05:00
|
|
|
#include "llvm/MC/MCExpr.h"
|
|
|
|
|
#include "llvm/MC/MCValue.h"
|
2011-02-20 07:57:14 -05:00
|
|
|
|
|
|
|
|
using namespace llvm;
|
|
|
|
|
|
|
|
|
|
MCELFObjectTargetWriter::MCELFObjectTargetWriter(bool Is64Bit_,
|
2012-04-14 09:54:10 -04:00
|
|
|
uint8_t OSABI_,
|
2011-02-20 07:57:14 -05:00
|
|
|
uint16_t EMachine_,
|
2012-08-15 15:34:23 -04:00
|
|
|
bool HasRelocationAddend_,
|
|
|
|
|
bool IsN64_)
|
2012-04-14 09:54:10 -04:00
|
|
|
: OSABI(OSABI_), EMachine(EMachine_),
|
2012-08-15 15:34:23 -04:00
|
|
|
HasRelocationAddend(HasRelocationAddend_), Is64Bit(Is64Bit_),
|
|
|
|
|
IsN64(IsN64_){
|
2011-02-20 07:57:14 -05:00
|
|
|
}
|
|
|
|
|
|
2015-06-09 15:06:30 -04:00
|
|
|
bool MCELFObjectTargetWriter::needsRelocateWithSymbol(const MCSymbol &Sym,
|
2014-11-24 04:08:18 -05:00
|
|
|
unsigned Type) const {
|
|
|
|
|
return false;
|
2011-02-20 07:57:14 -05:00
|
|
|
}
|
2015-05-27 14:44:32 -04:00
|
|
|
|
|
|
|
|
void
|
|
|
|
|
MCELFObjectTargetWriter::sortRelocs(const MCAssembler &Asm,
|
|
|
|
|
std::vector<ELFRelocationEntry> &Relocs) {
|
|
|
|
|
}
|