diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2009-06-25 12:50:33 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2009-06-25 12:50:33 +0000 |
commit | 2860494ece7d765930d4a242aa2463318ecbf1ae (patch) | |
tree | e61b4563d70ae65b399fa27d9440c13e2bc81a7d /misc/buildroot | |
parent | 0ffd3b6c84610350f6880e044a2f64a4f8cf55d9 (diff) | |
download | px4-nuttx-2860494ece7d765930d4a242aa2463318ecbf1ae.tar.gz px4-nuttx-2860494ece7d765930d4a242aa2463318ecbf1ae.tar.bz2 px4-nuttx-2860494ece7d765930d4a242aa2463318ecbf1ae.zip |
Make all counts 16-bits
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@1947 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'misc/buildroot')
-rw-r--r-- | misc/buildroot/toolchain/nxflat/readnxflat.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/misc/buildroot/toolchain/nxflat/readnxflat.c b/misc/buildroot/toolchain/nxflat/readnxflat.c index 290b8c645..81b5b05b2 100644 --- a/misc/buildroot/toolchain/nxflat/readnxflat.c +++ b/misc/buildroot/toolchain/nxflat/readnxflat.c @@ -435,7 +435,7 @@ static void dump_relocation_entries(FILE * in_stream, struct nxflat_hdr_s *heade printf("\nRELOCATION ENTRIES:\n"); printf(" OFFSET RELOC TYPE\n\n"); - for (i = 0; i < get_nxflat32(&header->h_reloccount); i++) + for (i = 0; i < get_nxflat16(&header->h_reloccount); i++) { /* Read the next reloction entry. */ @@ -504,7 +504,7 @@ static void dump_hdr(struct nxflat_hdr_s *header) printf("Stack size %08x\n", get_nxflat32(&header->h_stacksize)); printf("\nRELOCATIONS:\n"); printf(" Reloc start %08x\n", get_nxflat32(&header->h_relocstart)); - printf(" reloc count %d\n", get_nxflat32(&header->h_reloccount)); + printf(" reloc count %d\n", get_nxflat16(&header->h_reloccount)); printf("\nIMPORTED SYMBOLS:\n"); printf(" Import start %08x\n", get_nxflat32(&header->h_importsymbols)); printf(" Import count %d\n", get_nxflat16(&header->h_importcount)); |