pub struct Object {
pub name: String,
pub bytes: Vec<u8>,
pub size: u64,
pub align: u64,
pub place: Place,
pub binding: Binding,
pub relocs: Vec<Reloc>,
}Expand description
One global variable, laid out.
Fields§
§name: StringIts name, as the C program spelled it. The underscore an Apple symbol carries is the object writer’s business, not this one’s.
bytes: Vec<u8>Its image, and nothing at all when it is zero filled and the file carries none of it.
size: u64How many bytes it occupies, which is the length of the image except when there is none.
align: u64What it has to be aligned to, always a power of two.
place: PlaceWhich section it goes in.
binding: BindingHow the linker sees the name.
relocs: Vec<Reloc>Every place in its image that holds the address of a symbol, counted from the start of the image rather than from the start of the section it lands in.
Trait Implementations§
impl Eq for Object
impl StructuralPartialEq for Object
Auto Trait Implementations§
impl Freeze for Object
impl RefUnwindSafe for Object
impl Send for Object
impl Sync for Object
impl Unpin for Object
impl UnsafeUnpin for Object
impl UnwindSafe for Object
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.