LLVM 20.0.0git
Classes | Functions
llvm::objcopy::macho Namespace Reference

Classes

struct  BindInfo
 The location of the bind info inside the binary is described by LC_DYLD_INFO load command. More...
 
struct  CodeSignatureInfo
 When MachO binaries include a LC_CODE_SIGNATURE load command, the __LINKEDIT data segment will include a section corresponding to the LC_CODE_SIGNATURE load command. More...
 
struct  ExportInfo
 The location of the export info inside the binary is described by LC_DYLD_INFO load command. More...
 
struct  IndirectSymbolEntry
 
struct  IndirectSymbolTable
 
struct  LazyBindInfo
 The location of the lazy bind info inside the binary is described by LC_DYLD_INFO load command. More...
 
struct  LinkData
 
struct  LoadCommand
 
struct  MachHeader
 
class  MachOLayoutBuilder
 
class  MachOReader
 
class  MachOWriter
 
struct  Object
 
class  Reader
 
struct  RebaseInfo
 The location of the rebase info inside the binary is described by LC_DYLD_INFO load command. More...
 
struct  RelocationInfo
 
struct  Section
 
struct  StringTable
 The location of the string table inside the binary is described by LC_SYMTAB load command. More...
 
struct  SymbolEntry
 
struct  SymbolTable
 The location of the symbol table inside the binary is described by LC_SYMTAB load command. More...
 
struct  WeakBindInfo
 The location of the weak bind info inside the binary is described by LC_DYLD_INFO load command. More...
 

Functions

Error executeObjcopyOnBinary (const CommonConfig &Config, const MachOConfig &MachOConfig, object::MachOObjectFile &In, raw_ostream &Out)
 Apply the transformations described by Config and MachOConfig to In and writes the result into Out.
 
Error executeObjcopyOnMachOUniversalBinary (const MultiFormatConfig &Config, const object::MachOUniversalBinary &In, raw_ostream &Out)
 Apply the transformations described by Config and MachOConfig to In and writes the result into Out.
 

Function Documentation

◆ executeObjcopyOnBinary()

Error llvm::objcopy::macho::executeObjcopyOnBinary ( const CommonConfig Config,
const MachOConfig MachOConfig,
object::MachOObjectFile In,
raw_ostream Out 
)

Apply the transformations described by Config and MachOConfig to In and writes the result into Out.

Returns
any Error encountered whilst performing the operation.

Definition at line 448 of file MachOObjcopy.cpp.

References Config, llvm::objcopy::macho::Reader::create(), llvm::createFileError(), llvm::createStringError(), llvm::sys::path::filename(), llvm::objcopy::macho::MachOWriter::finalize(), handleArgs(), PageSize, and llvm::objcopy::macho::MachOWriter::write().

Referenced by llvm::objcopy::executeObjcopyOnBinary(), and executeObjcopyOnMachOUniversalBinary().

◆ executeObjcopyOnMachOUniversalBinary()

Error llvm::objcopy::macho::executeObjcopyOnMachOUniversalBinary ( const MultiFormatConfig Config,
const object::MachOUniversalBinary In,
raw_ostream Out 
)