mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-07 05:35:02 -05:00
Try fixing yellow..
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17554 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
affa4f668e
commit
589bb1c407
1 changed files with 5 additions and 4 deletions
|
|
@ -83,7 +83,8 @@ static int elf_convert(const unsigned char *inbuf, unsigned char *outbuf)
|
|||
{
|
||||
Elf32_Ehdr *main_header;
|
||||
Elf32_Shdr *section_header;
|
||||
unsigned int i, j, sum, startaddr;
|
||||
unsigned int i, j, sum;
|
||||
int startaddr;
|
||||
|
||||
main_header = (Elf32_Ehdr*)inbuf;
|
||||
if( !( main_header->e_ident[0] == ELFMAG0 && main_header->e_ident[1] == ELFMAG1
|
||||
|
|
@ -93,7 +94,7 @@ static int elf_convert(const unsigned char *inbuf, unsigned char *outbuf)
|
|||
return -1;
|
||||
}
|
||||
|
||||
startaddr = (unsigned int)outbuf;
|
||||
startaddr = (intptr_t)outbuf;
|
||||
|
||||
for(i = 0; i < main_header->e_shnum; i++)
|
||||
{
|
||||
|
|
@ -102,7 +103,7 @@ static int elf_convert(const unsigned char *inbuf, unsigned char *outbuf)
|
|||
if( (section_header->sh_flags & SHF_WRITE || section_header->sh_flags & SHF_ALLOC
|
||||
|| section_header->sh_flags & SHF_EXECINSTR) && section_header->sh_size > 0
|
||||
&& section_header->sh_type != SHT_NOBITS )
|
||||
{
|
||||
{
|
||||
/* Address */
|
||||
int2le(section_header->sh_addr, outbuf);
|
||||
outbuf += 4;
|
||||
|
|
@ -122,7 +123,7 @@ static int elf_convert(const unsigned char *inbuf, unsigned char *outbuf)
|
|||
outbuf += section_header->sh_size;
|
||||
}
|
||||
}
|
||||
return (unsigned int)(outbuf - startaddr);
|
||||
return (intptr_t)(outbuf - startaddr);
|
||||
}
|
||||
|
||||
static int make_jrm_file(const unsigned char *inbuf, unsigned char *outbuf)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue