Skip to content

Commit

Permalink
mach: remove repr(packed) from Dylib and Fvmlib. fixes #105
Browse files Browse the repository at this point in the history
  • Loading branch information
m4b committed Oct 14, 2018
1 parent 1984e1e commit b3a633f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/mach/load_command.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit b3a633f

Please sign in to comment.