Trait dynasmrt::DynasmLabelApi [] [src]

pub trait DynasmLabelApi: DynasmApi {
    type Relocation;
    fn align(&mut self, alignment: usize);
fn local_label(&mut self, name: &'static str);
fn global_label(&mut self, name: &'static str);
fn dynamic_label(&mut self, id: DynamicLabel);
fn forward_reloc(&mut self, name: &'static str, kind: Self::Relocation);
fn backward_reloc(&mut self, name: &'static str, kind: Self::Relocation);
fn global_reloc(&mut self, name: &'static str, kind: Self::Relocation);
fn dynamic_reloc(&mut self, id: DynamicLabel, kind: Self::Relocation);
fn bare_reloc(&mut self, target: usize, kind: Self::Relocation); }

This trait extends DynasmApi to not only allow assembling, but also labels and various directives

Associated Types

Required Methods

Push nops until the assembling target end is aligned to the given alignment

Record the definition of a local label

Record the definition of a global label

Record the definition of a dynamic label

Record a relocation spot for a forward reference to a local label

Record a relocation spot for a backward reference to a local label

Record a relocation spot for a reference to a global label

Record a relocation spot for a reference to a dynamic label

Record a relocation spot to an arbitrary target

Implementors