pub struct Unwind {
pub bytes: Vec<u8>,
pub relocs: Vec<Reloc>,
}Expand description
The unwind table, as the bytes of its own section and what the linker has to be told about them.
Bytes rather than rows, because what a record is is DWARF’s answer and not the object format’s, and the layer that knows what a frame did is the one that can say it in the fewest of them. What is left for the writer is where the section goes and what its relocations are, which is the part the three formats disagree about.
Each record says where its function is as a distance from the record to the function, which is a number no compilation knows: a function is at a fixed offset inside its own section and the section is placed by the linker. So there is one relocation per record and it is the ordinary instruction pointer relative one, since the distance is between two things in the same file.
Fields§
§bytes: Vec<u8>The records, one shared header and one per function.
relocs: Vec<Reloc>Every place in them that names a function the linker has to place.
Trait Implementations§
impl Eq for Unwind
impl StructuralPartialEq for Unwind
Auto Trait Implementations§
impl Freeze for Unwind
impl RefUnwindSafe for Unwind
impl Send for Unwind
impl Sync for Unwind
impl Unpin for Unwind
impl UnsafeUnpin for Unwind
impl UnwindSafe for Unwind
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.