2018-10-29 22:22:58 +01:00
|
|
|
//===- ELFObjcopy.h ---------------------------------------------*- C++ -*-===//
|
|
|
|
//
|
2019-01-19 09:50:56 +01:00
|
|
|
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
|
|
|
// See https://llvm.org/LICENSE.txt for license information.
|
|
|
|
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
|
2018-10-29 22:22:58 +01:00
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
|
|
|
#ifndef LLVM_TOOLS_OBJCOPY_ELFOBJCOPY_H
|
|
|
|
#define LLVM_TOOLS_OBJCOPY_ELFOBJCOPY_H
|
|
|
|
|
|
|
|
namespace llvm {
|
2019-01-30 15:36:53 +01:00
|
|
|
class Error;
|
2018-10-29 22:22:58 +01:00
|
|
|
class MemoryBuffer;
|
2020-10-24 16:35:55 +02:00
|
|
|
class raw_ostream;
|
2018-10-29 22:22:58 +01:00
|
|
|
|
|
|
|
namespace object {
|
|
|
|
class ELFObjectFileBase;
|
|
|
|
} // end namespace object
|
|
|
|
|
|
|
|
namespace objcopy {
|
2021-04-23 13:19:11 +02:00
|
|
|
struct CommonConfig;
|
|
|
|
struct ELFConfig;
|
2018-10-29 22:22:58 +01:00
|
|
|
|
|
|
|
namespace elf {
|
2021-04-23 13:19:11 +02:00
|
|
|
Error executeObjcopyOnIHex(const CommonConfig &Config,
|
|
|
|
const ELFConfig &ELFConfig, MemoryBuffer &In,
|
2020-10-24 16:35:55 +02:00
|
|
|
raw_ostream &Out);
|
2021-04-23 13:19:11 +02:00
|
|
|
Error executeObjcopyOnRawBinary(const CommonConfig &Config,
|
|
|
|
const ELFConfig &ELFConfig, MemoryBuffer &In,
|
2020-10-24 16:35:55 +02:00
|
|
|
raw_ostream &Out);
|
2021-04-23 13:19:11 +02:00
|
|
|
Error executeObjcopyOnBinary(const CommonConfig &Config,
|
|
|
|
const ELFConfig &ELFConfig,
|
2020-10-24 16:35:55 +02:00
|
|
|
object::ELFObjectFileBase &In, raw_ostream &Out);
|
2018-10-29 22:22:58 +01:00
|
|
|
|
|
|
|
} // end namespace elf
|
|
|
|
} // end namespace objcopy
|
|
|
|
} // end namespace llvm
|
|
|
|
|
|
|
|
#endif // LLVM_TOOLS_OBJCOPY_ELFOBJCOPY_H
|