pub enum LinkMode {
Static,
StaticPie,
Dynamic,
}Expand description
How the program is linked, which decides the first start file and the flags.
Variants§
Static
Everything in the binary, no interpreter, no relocation at load. The default for musl, and
the mode spec/cross-compile/02-the-goal.md’s exit criterion names.
StaticPie
Static, and position independent, so the loader may place it anywhere. A different first
start file, because the program has to relocate itself before main and rcrt1.o is what
does that.
Dynamic
Against the shared libc, with musl’s loader named in the program header.
Trait Implementations§
impl Copy for LinkMode
impl Eq for LinkMode
impl StructuralPartialEq for LinkMode
Auto Trait Implementations§
impl Freeze for LinkMode
impl RefUnwindSafe for LinkMode
impl Send for LinkMode
impl Sync for LinkMode
impl Unpin for LinkMode
impl UnsafeUnpin for LinkMode
impl UnwindSafe for LinkMode
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