Struct goblin::mach::load_command::TwolevelHint
source · #[repr(C)]pub struct TwolevelHint {
pub isub_image: u64,
pub itoc: [u8; 24],
}
Expand description
The entries in the two-level namespace lookup hints table are twolevel_hint structs. These provide hints to the dynamic link editor where to start looking for an undefined symbol in a two-level namespace image. The isub_image field is an index into the sub-images (sub-frameworks and sub-umbrellas list) that made up the two-level image that the undefined symbol was found in when it was built by the static link editor. If isub-image is 0 the the symbol is expected to be defined in library and not in the sub-images. If isub-image is non-zero it is an index into the array of sub-images for the umbrella with the first index in the sub-images being
- The array of sub-images is the ordered list of sub-images of the umbrella that would be searched for a symbol that has the umbrella recorded as its primary library. The table of contents index is an index into the library’s table of contents. This is used as the starting point of the binary search or a directed linear search.
Fields§
§isub_image: u64
index into the sub images
itoc: [u8; 24]
24 bit field index into the table of contents
Trait Implementations§
source§impl Clone for TwolevelHint
impl Clone for TwolevelHint
source§fn clone(&self) -> TwolevelHint
fn clone(&self) -> TwolevelHint
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for TwolevelHint
impl Debug for TwolevelHint
source§impl<'a> IntoCtx<Endian> for &'a TwolevelHint
impl<'a> IntoCtx<Endian> for &'a TwolevelHint
source§impl<'a> TryFromCtx<'a, Endian> for TwolevelHintwhere
TwolevelHint: 'a,
impl<'a> TryFromCtx<'a, Endian> for TwolevelHintwhere TwolevelHint: 'a,
source§impl<'a> TryIntoCtx<Endian> for &'a TwolevelHint
impl<'a> TryIntoCtx<Endian> for &'a TwolevelHint
source§impl TryIntoCtx<Endian> for TwolevelHint
impl TryIntoCtx<Endian> for TwolevelHint
impl Copy for TwolevelHint
Auto Trait Implementations§
impl RefUnwindSafe for TwolevelHint
impl Send for TwolevelHint
impl Sync for TwolevelHint
impl Unpin for TwolevelHint
impl UnwindSafe for TwolevelHint
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