IndexCoreasmjit::Fixup

asmjit::Fixup Struct Reference [¶]

Data structure used to mark where a fixup in code or data is necessary.

Fixups are generally resolved during machine code generation. For example if a branch instruction is used to jump to a label, which hasn't been bound yet, a fixup is created. However, when such label is bound, the fixup is processed and removed from a list of fixups.

Public Members

Fixup* Fixup::next[¶]

Next fixup in a single-linked list.

uint32_t Fixup::sectionId[¶]

Section where the fixup comes from.

uint32_t Fixup::labelOrRelocId[¶]

Label id, relocation id, or Globals::kInvalidId.

Note
Fixup that is used with a LabelEntry always uses relocation id here, however, when a fixup is turned into unresolved and generally detached from LabelEntry, this field becomes a label identifier as unresolved fixups won't reference a relocation. This is just a space optimization.

size_t Fixup::offset[¶]

Label offset relative to the start of the section where the unresolved link comes from.

intptr_t Fixup::rel[¶]

Inlined rel8/rel32.

OffsetFormat Fixup::format[¶]

Offset format information.