LLVM  16.0.0git
llvm::objcopy::macho::BindInfo Struct Reference

The location of the bind info inside the binary is described by LC_DYLD_INFO load command. More...

#include "ObjCopy/MachO/MachOObject.h"

Collaboration diagram for llvm::objcopy::macho::BindInfo:
[legend]

## Public Attributes

ArrayRef< uint8_t > Opcodes

## Detailed Description

The location of the bind info inside the binary is described by LC_DYLD_INFO load command.

Dyld binds an image during the loading process, if the image requires any pointers to be initialized to symbols in other images. The bind information is a stream of byte sized opcodes whose symbolic names start with BIND_OPCODE_. Conceptually the bind information is a table of tuples: <seg-index, seg-offset, type, symbol-library-ordinal, symbol-name, addend> The opcodes are a compressed way to encode the table by only encoding when a column changes. In addition simple patterns like for runs of pointers initialized to the same value can be encoded in a few bytes.

Definition at line 226 of file MachOObject.h.

## ◆ Opcodes

 ArrayRef llvm::objcopy::macho::BindInfo::Opcodes

Definition at line 229 of file MachOObject.h.

The documentation for this struct was generated from the following file: