summaryrefslogtreecommitdiffstats
path: root/nuttx/binfmt
diff options
context:
space:
mode:
authorpatacongo <patacongo@7fd9a85b-ad96-42d3-883c-3090e2eb8679>2009-06-25 12:44:55 +0000
committerpatacongo <patacongo@7fd9a85b-ad96-42d3-883c-3090e2eb8679>2009-06-25 12:44:55 +0000
commitfda55e6a9a2dbc424ba77f7ec1664fa52d0509a4 (patch)
treedcd56d76f7a8bdfa211661c803171d7d6c278a86 /nuttx/binfmt
parentfab1bb8f5070c6f34e2100d5c45d6ccefc8d43cf (diff)
Make all counts 16-bit
git-svn-id: https://nuttx.svn.sourceforge.net/svnroot/nuttx/trunk@1946 7fd9a85b-ad96-42d3-883c-3090e2eb8679
Diffstat (limited to 'nuttx/binfmt')
-rw-r--r--nuttx/binfmt/libnxflat/libnxflat_bind.c2
-rw-r--r--nuttx/binfmt/libnxflat/libnxflat_init.c2
-rw-r--r--nuttx/binfmt/nxflat.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/nuttx/binfmt/libnxflat/libnxflat_bind.c b/nuttx/binfmt/libnxflat/libnxflat_bind.c
index 1d0c8d661f..4489ebfcd8 100644
--- a/nuttx/binfmt/libnxflat/libnxflat_bind.c
+++ b/nuttx/binfmt/libnxflat/libnxflat_bind.c
@@ -220,7 +220,7 @@ static inline int nxflat_gotrelocs(FAR struct nxflat_loadinfo_s *loadinfo)
/* From this, we can get the offset to the list of relocation entries */
offset = ntohl(hdr->h_relocstart);
- nrelocs = ntohl(hdr->h_reloccount);
+ nrelocs = ntohs(hdr->h_reloccount);
/* The value of the relocation list that we get from the header is a
* file offset. We will have to convert this to an offset into the
diff --git a/nuttx/binfmt/libnxflat/libnxflat_init.c b/nuttx/binfmt/libnxflat/libnxflat_init.c
index 8bc9aef990..6a7a987482 100644
--- a/nuttx/binfmt/libnxflat/libnxflat_init.c
+++ b/nuttx/binfmt/libnxflat/libnxflat_init.c
@@ -168,7 +168,7 @@ int nxflat_init(const char *filename, struct nxflat_hdr_s *header,
*/
loadinfo->relocstart = ntohl(header->h_relocstart);
- loadinfo->reloccount = ntohl(header->h_reloccount);
+ loadinfo->reloccount = ntohs(header->h_reloccount);
return 0;
}
diff --git a/nuttx/binfmt/nxflat.c b/nuttx/binfmt/nxflat.c
index 8aee2fdd06..534f18caed 100644
--- a/nuttx/binfmt/nxflat.c
+++ b/nuttx/binfmt/nxflat.c
@@ -123,7 +123,7 @@ static void nxflat_dumploadinfo(struct nxflat_loadinfo_s *loadinfo)
bdbg(" RELOCS:\n");
bdbg(" relocstart: %08lx\n", loadinfo->relocstart);
- bdbg(" reloccount: %08lx\n", loadinfo->reloccount);
+ bdbg(" reloccount: %04lx\n", loadinfo->reloccount);
bdbg(" HANDLES:\n");
bdbg(" filfd: %d\n", loadinfo->filfd);