From b3a633f5440a9a5c35739fe7c5e09b0b6c9903c0 Mon Sep 17 00:00:00 2001 From: m4b Date: Sun, 14 Oct 2018 13:20:53 -0700 Subject: [PATCH] mach: remove repr(packed) from Dylib and Fvmlib. fixes #105 --- src/mach/load_command.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mach/load_command.rs b/src/mach/load_command.rs index d92e372f0..e9e4987ed 100644 --- a/src/mach/load_command.rs +++ b/src/mach/load_command.rs @@ -141,7 +141,7 @@ impl SegmentCommand64 { /// target pathname (the name of the library as found for execution), and the /// minor version number. The address of where the headers are loaded is in /// header_addr. (THIS IS OBSOLETE and no longer supported). -#[repr(packed)] +#[repr(C)] #[derive(Debug, Clone, Copy, Pread, Pwrite, IOread, IOwrite, SizeWith)] pub struct Fvmlib { /// library's target pathname @@ -191,7 +191,7 @@ pub const SIZEOF_FVMLIB_COMMAND: usize = 20; /// An object that uses a dynamically linked shared library also contains a /// dylib_command (cmd == LC_LOAD_DYLIB, LC_LOAD_WEAK_DYLIB, or /// LC_REEXPORT_DYLIB) for each library it uses. -#[repr(packed)] +#[repr(C)] #[derive(Debug, Clone, Copy, Pread, Pwrite, IOread, IOwrite, SizeWith)] pub struct Dylib { /// library's path name