• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Commit MetaInfo

Revisión65a0bfee480386cfae978dadab71a11aaaf6e4b1 (tree)
Tiempo2014-05-08 02:03:08
AutorYoshinori Sato <ysato@sa76...>
CommiterYoshinori Sato

Log Message

Ignore zero size segment

Cambiar Resumen

Diferencia incremental

--- a/main.c
+++ b/main.c
@@ -217,9 +217,11 @@ static int write_elf(FILE *fp, struct writeinfo_t *writeinfo,
217217 printf("%d: %08x %08x %08x\n",
218218 i, phdr.p_offset, phdr.p_paddr, phdr.p_filesz);
219219 }
220+ if (phdr.p_filesz == 0)
221+ continue ;
220222 if (phdr.p_paddr < writeinfo->area.start ||
221223 (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",
223225 (unsigned long)phdr.p_paddr,
224226 (unsigned long)(phdr.p_paddr + phdr.p_filesz));
225227 goto error;