From 0ffd3b6c84610350f6880e044a2f64a4f8cf55d9 Mon Sep 17 00:00:00 2001 From: patacongo Date: Thu, 25 Jun 2009 12:44:55 +0000 Subject: Make all counts 16-bit git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@1946 42af7a65-404d-4744-a932-0658087f49c3 --- misc/buildroot/toolchain/nxflat/nxflat.h | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'misc/buildroot/toolchain/nxflat/nxflat.h') diff --git a/misc/buildroot/toolchain/nxflat/nxflat.h b/misc/buildroot/toolchain/nxflat/nxflat.h index fcdc17b0d..994a68421 100644 --- a/misc/buildroot/toolchain/nxflat/nxflat.h +++ b/misc/buildroot/toolchain/nxflat/nxflat.h @@ -108,25 +108,30 @@ struct nxflat_hdr_s * h_relocstart - Offset to the beginning of an array of relocation * records (struct nxflat_reloc). The offset is * relative to the start of the file - * h_reloccount - The number of relocation records in the arry */ u_int32_t h_relocstart; /* Offset of relocation records */ - u_int32_t h_reloccount; /* Number of relocation records */ /* Imported symbol table (NOTE no symbols are exported): * * h_importsymbols - Offset to the beginning of an array of imported - * symbol structures (struct nxflat_import). The + * symbol structures (struct nxflat_import_s). The * h_importsymbols offset is relative to the * beginning of the file. Each entry of the * array contains an uint32 offset (again from * the beginning of the file) to the name of * a symbol string. This string is null-terminated. - * h_importcount - The number of records in the h_exportsymbols array. */ u_int32_t h_importsymbols; /* Offset to list of imported symbols */ + + /* 16-bit counts + * + * h_reloccount - The number of relocation records in the arry + * h_importcount - The number of records in the h_importsymbols array. + */ + + u_int16_t h_reloccount; /* Number of relocation records */ u_int16_t h_importcount; /* Number of imported symbols */ }; -- cgit v1.2.3