Try making binsize smaller and fix pointer problem

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17556 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Maurus Cuelenaere 2008-05-17 15:51:49 +00:00
parent 2e1e219025
commit 7f67b0aa32
2 changed files with 3 additions and 3 deletions

View file

@ -84,7 +84,7 @@ static int elf_convert(const unsigned char *inbuf, unsigned char *outbuf)
Elf32_Ehdr *main_header;
Elf32_Shdr *section_header;
unsigned int i, j, sum;
int startaddr;
intptr_t startaddr;
main_header = (Elf32_Ehdr*)inbuf;
if( !( main_header->e_ident[0] == ELFMAG0 && main_header->e_ident[1] == ELFMAG1
@ -123,7 +123,7 @@ static int elf_convert(const unsigned char *inbuf, unsigned char *outbuf)
outbuf += section_header->sh_size;
}
}
return (intptr_t)(outbuf - startaddr);
return (int)((intptr_t)outbuf - startaddr);
}
static int make_jrm_file(const unsigned char *inbuf, unsigned char *outbuf)