Enum parity_wasm::elements::RelocationEntry
source · pub enum RelocationEntry {
FunctionIndexLeb {
offset: u32,
index: u32,
},
TableIndexSleb {
offset: u32,
index: u32,
},
TableIndexI32 {
offset: u32,
index: u32,
},
MemoryAddressLeb {
offset: u32,
index: u32,
addend: i32,
},
MemoryAddressSleb {
offset: u32,
index: u32,
addend: i32,
},
MemoryAddressI32 {
offset: u32,
index: u32,
addend: i32,
},
TypeIndexLeb {
offset: u32,
index: u32,
},
GlobalIndexLeb {
offset: u32,
index: u32,
},
}
Expand description
Relocation entry.
Variants
FunctionIndexLeb
Fields
offset: u32
Offset of the value to rewrite.
index: u32
Index of the function symbol in the symbol table.
Function index.
TableIndexSleb
Fields
offset: u32
Offset of the value to rewrite.
index: u32
Index of the function symbol in the symbol table.
Function table index.
TableIndexI32
Fields
offset: u32
Offset of the value to rewrite.
index: u32
Index of the function symbol in the symbol table.
Function table index.
MemoryAddressLeb
Fields
offset: u32
Offset of the value to rewrite.
index: u32
Index of the data symbol in the symbol table.
addend: i32
Addend to add to the address.
Linear memory index.
MemoryAddressSleb
Fields
offset: u32
Offset of the value to rewrite.
index: u32
Index of the data symbol in the symbol table.
addend: i32
Addend to add to the address.
Linear memory index.
MemoryAddressI32
Fields
offset: u32
Offset of the value to rewrite.
index: u32
Index of the data symbol in the symbol table.
addend: i32
Addend to add to the address.
Linear memory index.
TypeIndexLeb
Type table index.
GlobalIndexLeb
Fields
offset: u32
Offset of the value to rewrite.
index: u32
Index of the global symbol in the symbol table.
Global index.
Trait Implementations
sourceimpl Clone for RelocationEntry
impl Clone for RelocationEntry
sourcefn clone(&self) -> RelocationEntry
fn clone(&self) -> RelocationEntry
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more