Changed the x86 architecture to have tPAddr be 64-bits always
[tpg/acess2.git] / Kernel / bin / elf.h
index a2ba394..07f5ec1 100644 (file)
@@ -33,7 +33,7 @@ struct sElf32_Ehdr {
        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
@@ -101,7 +101,7 @@ struct sElf32_Shent {
        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
@@ -113,7 +113,7 @@ struct elf_sym_s {
        Uint8   info;\r
        Uint8   other;\r
        Uint16  shndx;\r
-};\r
+} __attribute__ ((packed));\r
 #define        STN_UNDEF       0       // Undefined Symbol\r
 \r
 enum {\r
@@ -137,18 +137,18 @@ struct sElf32_Phdr {
        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
@@ -172,7 +172,7 @@ enum {
 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

UCC git Repository :: git.ucc.asn.au