diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2009-06-18 12:18:41 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2009-06-18 12:18:41 +0000 |
commit | d12b92e21445508bcb0b8acff9b03e2c71b9da71 (patch) | |
tree | c59bd6a93bfe48308fbbea41121846f8ba1ac8c6 /nuttx/include | |
parent | e89e1602fe68cedee9eee297561d7ac2c73ee465 (diff) | |
download | px4-nuttx-d12b92e21445508bcb0b8acff9b03e2c71b9da71.tar.gz px4-nuttx-d12b92e21445508bcb0b8acff9b03e2c71b9da71.tar.bz2 px4-nuttx-d12b92e21445508bcb0b8acff9b03e2c71b9da71.zip |
Back out most of last change
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@1902 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/include')
-rw-r--r-- | nuttx/include/nxflat.h | 29 |
1 files changed, 12 insertions, 17 deletions
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 */ }; /**************************************************************************** |