From d12b92e21445508bcb0b8acff9b03e2c71b9da71 Mon Sep 17 00:00:00 2001 From: patacongo Date: Thu, 18 Jun 2009 12:18:41 +0000 Subject: Back out most of last change git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@1902 42af7a65-404d-4744-a932-0658087f49c3 --- nuttx/include/nxflat.h | 29 ++++++++++++----------------- 1 file changed, 12 insertions(+), 17 deletions(-) (limited to 'nuttx/include') diff --git a/nuttx/include/nxflat.h b/nuttx/include/nxflat.h index f643020ae..65b2aff75 100644 --- a/nuttx/include/nxflat.h +++ b/nuttx/include/nxflat.h @@ -47,18 +47,13 @@ * Pre-processor Definitions ****************************************************************************/ -#define NXFLAT_MAX_STRING_SIZE 64 /* Largest size of string (w/zterminator) */ +#define NXFLAT_MAX_STRING_SIZE 64 /* Largest size of string (w/zterminator) */ +#define NXFLAT_MAGIC "NxFT" /* NXFLAT magic number" /**************************************************************************** * Public Types ****************************************************************************/ -#ifdef CONFIG_NXFLAT_SMALL - typedef uint16 nxoff_t; -#else - typedef uint32 nxoff_t; -#endif - /**************************************************************************** * The NXFLAT file header * @@ -69,8 +64,8 @@ struct nxflat_hdr_s { - /* The "magic number identifying the file type. This field should contain - * "NxFT". NOTE that there is not other versioning information other than + /* The "magic number" identifying the file type. This field should contain + * "NxFT". NOTE that there is no other versioning information other than * this magic number. */ @@ -100,10 +95,10 @@ struct nxflat_hdr_s * The bss segment is data_end through bss_end. */ - nxoff_t h_entry; - nxoff_t h_datastart; - nxoff_t h_dataend; - nxoff_t h_bssend; + uint32 h_entry; + uint32 h_datastart; + uint32 h_dataend; + uint32 h_bssend; /* Size of stack, in bytes */ @@ -116,8 +111,8 @@ struct nxflat_hdr_s * h_reloccount - The number of relocation records in the arry */ - nxoff_t h_relocstart; /* Offset of relocation records */ - nxoff_t h_reloccount; /* Number of relocation records */ + uint32 h_relocstart; /* Offset of relocation records */ + uint32 h_reloccount; /* Number of relocation records */ /* Imported symbol table (NOTE no symbols are exported) * @@ -131,8 +126,8 @@ struct nxflat_hdr_s * h_importcount - The number of records in the h_exportsymbols array. */ - nxoff_t h_importsymbols; /* Offset to list of imported symbols */ - uint16 h_importcount; /* Number of imported symbols */ + uint32 h_importsymbols; /* Offset to list of imported symbols */ + uint16 h_importcount; /* Number of imported symbols */ }; /**************************************************************************** -- cgit v1.2.3