kstart
if ((od->kstart = (u_char *)MALLOC(od->ksize)) == NULL)
if ((read(fd, (char *)(od->kstart), ehdr.a_text) != ehdr.a_text)
||(read(fd,(char *)(od->kstart+textsz),ehdr.a_data) != ehdr.a_data))
memset(od->kstart + textsz + ehdr.a_data, 0, ehdr.a_bss);
p = (long *)((od->kstart) + textsz + ehdr.a_data + ehdr.a_bss);
od->k_esym = (long)((char *)p-(char *)od->kstart +stringsz);
if ((od->kstart = (u_char *)MALLOC(od->ksize)) == NULL)
p = (u_char *)(od->kstart) + php->p_vaddr;
symtab = od->kstart + symstart;
eprintf("Kernel loadaddr\t: 0x%08x\r\n", od->kstart);
off_t lenpos, kstart, kend;
kstart = lseek(prep_fd, 0, SEEK_CUR);
kgzlen = kend - kstart;
off_t lenpos, kstart, kend;
kstart = lseek(rs6000_fd, 0, SEEK_CUR);
printf("kernel start at pos 0x%lx\n", (unsigned long)kstart);
kgzlen = kend - kstart;
off_t lenpos, kstart, kend, toff, endoff, flength;
kstart = lseek(bebox_fd, 0, SEEK_CUR);
kstart = kend = lseek(bebox_fd, 0, SEEK_CUR);
kgzlen = kend - kstart;