2013-12-15 20:57:28 +08:00
|
|
|
//===- lld/ReaderWriter/ELF/Mips/MipsRelocationHandler.h ------------------===//
|
|
|
|
//
|
|
|
|
// The LLVM Linker
|
|
|
|
//
|
|
|
|
// This file is distributed under the University of Illinois Open Source
|
|
|
|
// License. See LICENSE.TXT for details.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
2014-02-04 04:10:30 +08:00
|
|
|
#ifndef LLD_READER_WRITER_ELF_MIPS_MIPS_RELOCATION_HANDLER_H
|
|
|
|
#define LLD_READER_WRITER_ELF_MIPS_MIPS_RELOCATION_HANDLER_H
|
2013-12-15 20:57:28 +08:00
|
|
|
|
|
|
|
#include "MipsLinkingContext.h"
|
|
|
|
|
|
|
|
namespace lld {
|
|
|
|
namespace elf {
|
|
|
|
|
|
|
|
class MipsTargetHandler;
|
|
|
|
|
2014-03-02 17:35:33 +08:00
|
|
|
class MipsTargetRelocationHandler final
|
2013-12-15 20:57:28 +08:00
|
|
|
: public TargetRelocationHandler<Mips32ElELFType> {
|
|
|
|
public:
|
2014-03-09 21:04:45 +08:00
|
|
|
MipsTargetRelocationHandler(MipsTargetLayout<Mips32ElELFType> &layout)
|
|
|
|
: _mipsTargetLayout(layout) {}
|
2013-12-15 20:57:28 +08:00
|
|
|
|
2014-03-06 18:29:45 +08:00
|
|
|
error_code applyRelocation(ELFWriter &, llvm::FileOutputBuffer &,
|
|
|
|
const lld::AtomLayout &,
|
|
|
|
const Reference &) const override;
|
2013-12-15 20:57:28 +08:00
|
|
|
|
|
|
|
private:
|
2014-01-27 09:21:02 +08:00
|
|
|
MipsTargetLayout<Mips32ElELFType> &_mipsTargetLayout;
|
2013-12-15 20:57:28 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
} // elf
|
|
|
|
} // lld
|
|
|
|
|
|
|
|
#endif
|