ΒΆllvm::Error executeObjcopyOnBinary(
    const llvm::objcopy::MultiFormatConfig&
        Config,
    object::Binary& In,
    llvm::raw_ostream& Out)

Description

Applies the transformations described by \p Config to \p In and writes the result into \p Out. This function does the dispatch based on the format of the input binary (COFF, ELF, MachO or wasm).

Declared at: llvm/include/llvm/ObjCopy/ObjCopy.h:36

Parameters

const llvm::objcopy::MultiFormatConfig& Config
object::Binary& In
llvm::raw_ostream& Out

Returns

any Error encountered whilst performing the operation.