Uint16 shentsize; //!< Section Header Entry Size\r
Uint16 shentcount; //!< Section Header Entry Count\r
Uint16 shstrindex; //!< Section Header String Table Index\r
-};\r
+} __attribute__ ((packed));\r
\r
/**\r
\name Executable Types\r
Uint32 info;\r
Uint32 addralign;\r
Uint32 entsize;\r
-}; //sizeof = 40\r
+} __attribute__ ((packed)); //sizeof = 40\r
\r
struct elf_sym_s {\r
union {\r
Uint8 info;\r
Uint8 other;\r
Uint16 shndx;\r
-};\r
+} __attribute__ ((packed));\r
#define STN_UNDEF 0 // Undefined Symbol\r
\r
enum {\r
Uint32 MemSize;\r
Uint32 Flags;\r
Uint32 Align;\r
-};\r
+} __attribute__ ((packed));\r
\r
struct elf32_rel_s {\r
Uint32 r_offset;\r
Uint32 r_info;\r
-};\r
+} __attribute__ ((packed));\r
\r
struct elf32_rela_s {\r
Uint32 r_offset;\r
Uint32 r_info;\r
Sint32 r_addend;\r
-};\r
+} __attribute__ ((packed));\r
\r
enum {\r
R_386_NONE = 0, // none\r
struct elf32_dyn_s {\r
Uint32 d_tag;\r
Uint32 d_val; //Also d_ptr\r
-};\r
+} __attribute__ ((packed));\r
\r
enum {\r
DT_NULL, //!< Marks End of list\r