pub enum Compress {
None,
Zlib,
ZlibGnu,
Zstd,
}Expand description
How an ELF file stores its debug sections.
A debug section is much larger than the code it describes and is read by a debugger rather than by the program, so it can be stored compressed and unpacked by whatever reads it. A section that would come out no smaller is left as it is, the way gas leaves one.
Variants§
None
As they are.
Zlib
-gz=zlib: the section keeps its name, gains SHF_COMPRESSED, and starts with an
Elf_Chdr saying it is zlib and how large it was.
ZlibGnu
-gz=zlib-gnu: the older layout, where .debug_info becomes .zdebug_info and starts with
ZLIB and its size as eight big endian bytes.
Zstd
-gz=zstd: as Zlib, with the Elf_Chdr saying zstd and a zstd frame after it.
Trait Implementations§
impl Copy for Compress
impl Eq for Compress
impl StructuralPartialEq for Compress
Auto Trait Implementations§
impl Freeze for Compress
impl RefUnwindSafe for Compress
impl Send for Compress
impl Sync for Compress
impl Unpin for Compress
impl UnsafeUnpin for Compress
impl UnwindSafe for Compress
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.