Added several __attribute_packed.

committer: mfx <mfx> 1110730186 +0000
This commit is contained in:
Markus F.X.J. Oberhumer
2005-03-13 16:09:46 +00:00
parent 41031e572e
commit f788d76b8c
+10 -4
View File
@@ -53,7 +53,8 @@ struct Mach_header {
enum { enum {
MH_NOUNDEFS = 1 MH_NOUNDEFS = 1
}; };
}; }
__attribute_packed;
struct Mach_segment_command { struct Mach_segment_command {
BE32 cmd; BE32 cmd;
@@ -78,7 +79,8 @@ struct Mach_segment_command {
BE32 initprot; BE32 initprot;
BE32 nsects; BE32 nsects;
BE32 flags; BE32 flags;
}; }
__attribute_packed;
struct Mach_section { struct Mach_section {
char sectname[16]; char sectname[16];
@@ -115,7 +117,8 @@ struct Mach_section {
BE32 reserved1; BE32 reserved1;
BE32 reserved2; BE32 reserved2;
}; }
__attribute_packed;
struct Mach_ppc_thread_state { struct Mach_ppc_thread_state {
BE32 srr0; /* Instruction address register (PC; entry addr) */ 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 PPC_THREAD_STATE_COUNT = sizeof(struct Mach_ppc_thread_state)/4
}; };
struct Mach_ppc_thread_state state; struct Mach_ppc_thread_state state;
}; }
__attribute_packed;
#include "p_unix.h" #include "p_unix.h"
class PackMachPPC32 : public PackUnixBe32 class PackMachPPC32 : public PackUnixBe32
{ {
typedef PackUnixBe32 super; typedef PackUnixBe32 super;