Added several __attribute_packed.
committer: mfx <mfx> 1110730186 +0000
This commit is contained in:
parent
41031e572e
commit
f788d76b8c
14
src/p_mach.h
14
src/p_mach.h
@ -53,7 +53,8 @@ struct Mach_header {
|
||||
enum {
|
||||
MH_NOUNDEFS = 1
|
||||
};
|
||||
};
|
||||
}
|
||||
__attribute_packed;
|
||||
|
||||
struct Mach_segment_command {
|
||||
BE32 cmd;
|
||||
@ -78,7 +79,8 @@ struct Mach_segment_command {
|
||||
BE32 initprot;
|
||||
BE32 nsects;
|
||||
BE32 flags;
|
||||
};
|
||||
}
|
||||
__attribute_packed;
|
||||
|
||||
struct Mach_section {
|
||||
char sectname[16];
|
||||
@ -115,7 +117,8 @@ struct Mach_section {
|
||||
BE32 reserved1;
|
||||
BE32 reserved2;
|
||||
|
||||
};
|
||||
}
|
||||
__attribute_packed;
|
||||
|
||||
struct Mach_ppc_thread_state {
|
||||
BE32 srr0; /* Instruction address register (PC; entry addr) */
|
||||
@ -146,10 +149,13 @@ struct Mach_thread_command {
|
||||
PPC_THREAD_STATE_COUNT = sizeof(struct Mach_ppc_thread_state)/4
|
||||
};
|
||||
struct Mach_ppc_thread_state state;
|
||||
};
|
||||
}
|
||||
__attribute_packed;
|
||||
|
||||
|
||||
#include "p_unix.h"
|
||||
|
||||
|
||||
class PackMachPPC32 : public PackUnixBe32
|
||||
{
|
||||
typedef PackUnixBe32 super;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user