Here is some code from mkaif.c from BIOS-1.05:

>aifhdr.decomp_code      = SWAP32(0xe1a00000);   /* nop */
>aifhdr.reloc_code          = SWAP32(0xe1a00000);   /* nop*/
>aifhdr.init_code             = SWAP32(0xe1a00000);   /* nop*/
>aifhdr.entry_code          = SWAP32(0xeb00001b);   /* bl entry */      
>aifhdr.exit_code            = SWAP32(0xeafffffe);
>aifhdr.text_size  = p_head[text_phead].p_memsz; /* Mem size since
>                                                we append stuffs */
>aifhdr.data_size = p_head[data_phead].p_memsz; /* Mem size (excludes bss) */ 
>aifhdr.bss_size        = SWAP32(SWAP32(p_head[data_phead].p_memsz) -        
>                         SWAP32(p_head[data_phead].p_filesz));
>aifhdr.image_base = SWAP32(SWAP32(p_head[text_phead].p_vaddr) - 128);

Although I know almost _nothing_ about ELF format, I highly suspect there's a
Cut-&-Paste error here:
>aifhdr.data_size = p_head[data_phead].p_memsz; /* Mem size (excludes bss) */ 

Shouldn't it indeed be:
>aifhdr.data_size = p_head[data_phead].p_filesz; /* Mem size (excludes bss) */ 

?
-- 
Fran�ois Desloges
[EMAIL PROTECTED]
unsubscribe: body of `unsubscribe linux-arm' to [EMAIL PROTECTED]

Reply via email to