diff options
Diffstat (limited to 'lib/ReaderWriter/ELF/X86/X86RelocationHandler.h')
-rw-r--r-- | lib/ReaderWriter/ELF/X86/X86RelocationHandler.h | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/lib/ReaderWriter/ELF/X86/X86RelocationHandler.h b/lib/ReaderWriter/ELF/X86/X86RelocationHandler.h new file mode 100644 index 000000000000..f161cdd55983 --- /dev/null +++ b/lib/ReaderWriter/ELF/X86/X86RelocationHandler.h @@ -0,0 +1,29 @@ +//===- lib/ReaderWriter/ELF/X86/X86RelocationHandler.h --------------------===// +// +// The LLVM Linker +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// + +#ifndef X86_X86_RELOCATION_HANDLER_H +#define X86_X86_RELOCATION_HANDLER_H + +#include "X86TargetHandler.h" + +namespace lld { +namespace elf { +typedef llvm::object::ELFType<llvm::support::little, 2, false> X86ELFType; + +class X86TargetRelocationHandler final : public TargetRelocationHandler { +public: + std::error_code applyRelocation(ELFWriter &, llvm::FileOutputBuffer &, + const lld::AtomLayout &, + const Reference &) const override; +}; + +} // end namespace elf +} // end namespace lld + +#endif // X86_X86_RELOCATION_HANDLER_H |