Revisión | 65a0bfee480386cfae978dadab71a11aaaf6e4b1 (tree) |
---|---|
Tiempo | 2014-05-08 02:03:08 |
Autor | Yoshinori Sato <ysato@sa76...> |
Commiter | Yoshinori Sato |
Ignore zero size segment
@@ -217,9 +217,11 @@ static int write_elf(FILE *fp, struct writeinfo_t *writeinfo, | ||
217 | 217 | printf("%d: %08x %08x %08x\n", |
218 | 218 | i, phdr.p_offset, phdr.p_paddr, phdr.p_filesz); |
219 | 219 | } |
220 | + if (phdr.p_filesz == 0) | |
221 | + continue ; | |
220 | 222 | if (phdr.p_paddr < writeinfo->area.start || |
221 | 223 | (phdr.p_paddr + phdr.p_filesz) > writeinfo->area.end) { |
222 | - fprintf(stderr, "%08lx - %08lx is out of rom", | |
224 | + fprintf(stderr, "%08lx - %08lx is out of rom\n", | |
223 | 225 | (unsigned long)phdr.p_paddr, |
224 | 226 | (unsigned long)(phdr.p_paddr + phdr.p_filesz)); |
225 | 227 | goto error; |