| //===-- 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. |
| //===----------------------------------------------------------------------===// |
| #include "llvm/ADT/STLExtras.h" |
| #include "llvm/MC/MCELFObjectWriter.h" |
| MCELFObjectTargetWriter::MCELFObjectTargetWriter(bool Is64Bit_, |
| bool HasRelocationAddend_, |
| : OSABI(OSABI_), EMachine(EMachine_), |
| HasRelocationAddend(HasRelocationAddend_), Is64Bit(Is64Bit_), |
| unsigned MCELFObjectTargetWriter::getEFlags() const { |
| const MCSymbol *MCELFObjectTargetWriter::ExplicitRelSym(const MCAssembler &Asm, |
| void MCELFObjectTargetWriter::adjustFixupOffset(const MCFixup &Fixup, |
| MCELFObjectTargetWriter::sortRelocs(const MCAssembler &Asm, |
| std::vector<ELFRelocationEntry> &Relocs) { |
| // Sort by the r_offset, just like gnu as does. |
| array_pod_sort(Relocs.begin(), Relocs.end()); |