Struct wasmtime_environ::RelocSink
source · pub struct RelocSink {
pub func_relocs: Vec<Relocation>,
}
Expand description
Implementation of a relocation sink that just saves all the information for later
Fields§
§func_relocs: Vec<Relocation>
Relocations recorded for the function.
Implementations§
Trait Implementations§
source§impl RelocSink for RelocSink
impl RelocSink for RelocSink
source§fn reloc_ebb(
&mut self,
_offset: CodeOffset,
_reloc: Reloc,
_ebb_offset: CodeOffset
)
fn reloc_ebb(
&mut self,
_offset: CodeOffset,
_reloc: Reloc,
_ebb_offset: CodeOffset
)
Add a relocation referencing an EBB at the current offset.
source§fn reloc_external(
&mut self,
offset: CodeOffset,
reloc: Reloc,
name: &ExternalName,
addend: Addend
)
fn reloc_external(
&mut self,
offset: CodeOffset,
reloc: Reloc,
name: &ExternalName,
addend: Addend
)
Add a relocation referencing an external symbol at the current offset.