X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=Kernel%2Fbin%2Felf.h;h=13724eb3b4b8803fde748506dc2531b41339e466;hb=26e66aa0a682e2f1a5d9328b6037b5779310f8f3;hp=07f5ec195b4a1147009604a798b6afb018229d96;hpb=38e4b28d370c5f9284b285a71518ae2b6bce125c;p=tpg%2Facess2.git diff --git a/Kernel/bin/elf.h b/Kernel/bin/elf.h index 07f5ec19..13724eb3 100644 --- a/Kernel/bin/elf.h +++ b/Kernel/bin/elf.h @@ -1,16 +1,15 @@ /** - Acess v1 - \file bin_elf.h - \brief ELF Exeutable Loader -*/ + * \file elf.h + * \brief ELF Exeutable Loader + */ #ifndef _BIN_ELF_H #define _BIN_ELF_H /** - \struct elf_header_s - \brief ELF File Header -*/ -struct sElf32_Ehdr { + * \brief ELF File Header + */ +struct sElf32_Ehdr +{ union { char ident[16]; //!< Identifier Bytes struct { @@ -36,17 +35,18 @@ struct sElf32_Ehdr { } __attribute__ ((packed)); /** - \name Executable Types - \{ -*/ -#define ET_NONE 0 //!< NULL Type -#define ET_REL 1 //!< Relocatable (Object) -#define ET_EXEC 2 //!< Executable -#define ET_DYN 3 //!< Dynamic Library -#define ET_CORE 4 //!< Core? -#define ET_LOPROC 0xFF00 //!< Low Impl Defined -#define ET_HIPROC 0xFFFF //!< High Impl Defined -//! \} + * \brief Executable Types + */ +enum eElf32_ExecTypes +{ + ET_NONE = 0, //!< NULL Type + ET_REL = 1, //!< Relocatable (Object) + ET_EXEC = 2, //!< Executable + ET_DYN = 3, //!< Dynamic Library + ET_CORE = 4, //!< Core? + ET_LOPROC = 0xFF00, //!< Low Impl Defined + ET_HIPROC = 0xFFFF //!< High Impl Defined +}; /** \name Section IDs @@ -130,9 +130,9 @@ enum { struct sElf32_Phdr { Uint32 Type; - Uint Offset; - Uint VAddr; - Uint PAddr; + Uint32 Offset; + Uint32 VAddr; + Uint32 PAddr; Uint32 FileSize; Uint32 MemSize; Uint32 Flags;