pub struct RelocResolution {
pub seg_index: usize,
pub addend: u32,
pub label: String,
}Expand description
The retargeting the compiler emitted for one static-data relocation: it now
points at __synth_wasm_seg_{seg_index} + addend. seg_index is the K
from the emitted symbol name; addend is the emitted in-place REL addend
(= original_access_addr - seg[K].linmem_off). This is the value read back
from what the compiler produced — NEVER recomputed by the validator (that
would mirror-pin the check and make it vacuous).
Fields§
§seg_index: usizeThe K in the emitted __synth_wasm_seg_K symbol.
addend: u32The emitted addend (offset into seg[K].bytes).
label: StringOptional label for diagnostics (e.g. "func 3 @ 0x1a"); not load-bearing.
Trait Implementations§
Source§impl Clone for RelocResolution
impl Clone for RelocResolution
Source§fn clone(&self) -> RelocResolution
fn clone(&self) -> RelocResolution
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for RelocResolution
impl RefUnwindSafe for RelocResolution
impl Send for RelocResolution
impl Sync for RelocResolution
impl Unpin for RelocResolution
impl UnsafeUnpin for RelocResolution
impl UnwindSafe for RelocResolution
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more