Trait dynasmrt::DynasmLabelApi
[−]
[src]
pub trait DynasmLabelApi<'a>: DynasmApi<'a> { 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, size: u8); fn backward_reloc(&mut self, name: &'static str, size: u8); fn global_reloc(&mut self, name: &'static str, size: u8); fn dynamic_reloc(&mut self, id: DynamicLabel, size: u8); }
This trait extends DynasmApi to not only allow assembling, but also labels and various directives
Required Methods
fn align(&mut self, alignment: usize)
Push nops until the assembling target end is aligned to the given alignment
fn local_label(&mut self, name: &'static str)
Record the definition of a local label
fn global_label(&mut self, name: &'static str)
Record the definition of a global label
fn dynamic_label(&mut self, id: DynamicLabel)
Record the definition of a dynamic label
fn forward_reloc(&mut self, name: &'static str, size: u8)
Record a relocation spot for a forward reference to a local label
fn backward_reloc(&mut self, name: &'static str, size: u8)
Record a relocation spot for a backward reference to a local label
fn global_reloc(&mut self, name: &'static str, size: u8)
Record a relocation spot for a reference to a global label
fn dynamic_reloc(&mut self, id: DynamicLabel, size: u8)
Record a relocation spot for a reference to a dynamic label
Implementors
impl<'a> DynasmLabelApi<'a> for Assembler
impl<'a, 'b, 'c> DynasmLabelApi<'c> for AssemblyModifier<'a, 'b>