LLVM  15.0.0git
Public Attributes | List of all members
llvm::objcopy::macho::RebaseInfo Struct Reference

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

#include "ObjCopy/MachO/MachOObject.h"

Collaboration diagram for llvm::objcopy::macho::RebaseInfo:
Collaboration graph
[legend]

Public Attributes

ArrayRef< uint8_t > Opcodes
 

Detailed Description

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

Dyld rebases an image whenever dyld loads it at an address different from its preferred address. The rebase information is a stream of byte sized opcodes whose symbolic names start with REBASE_OPCODE_. Conceptually the rebase information is a table of tuples: <seg-index, seg-offset, type> The opcodes are a compressed way to encode the table by only encoding when a column changes. In addition simple patterns like "every n'th offset for m times" can be encoded in a few bytes.

Definition at line 215 of file MachOObject.h.

Member Data Documentation

◆ Opcodes

ArrayRef<uint8_t> llvm::objcopy::macho::RebaseInfo::Opcodes

Definition at line 218 of file MachOObject.h.


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