pub enum Place {
Written,
ReadOnly,
Zero,
Merged,
Named(String),
}Expand description
Which section a variable goes in.
Worked out from what the variable is rather than named by it, except in the one case where the
program named it. A reader who wants to know why a variable is in .rodata should be able to
find the answer in the variable.
Variants§
Written
Written to, and its image is not all zeros. .data.
ReadOnly
Never written to, so it can go in a page the loader maps read only and every process
running the program can share. .rodata.
Zero
All zeros, so the file says how big it is and carries none of it. .bss.
Merged
A tentative definition, which is not in a section at all: the linker is asked for that
much zeroed space and merges every definition of the name into one. .comm.
Named(String)
The section the program named, from __attribute__((section(...))).
Trait Implementations§
impl Eq for Place
impl StructuralPartialEq for Place
Auto Trait Implementations§
impl Freeze for Place
impl RefUnwindSafe for Place
impl Send for Place
impl Sync for Place
impl Unpin for Place
impl UnsafeUnpin for Place
impl UnwindSafe for Place
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
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
Compare self to
key and return true if they are equal.