Browse Source

Don't patch on-computer file size when --outputbin-main-only is given either.

git-svn-id: file:///var/svn/tigccpp/trunk@1152 9552661e-59e3-4036-b4f2-dbe53926924f
kevinkofler 17 years ago
parent
commit
0a06b41511
1 changed files with 1 additions and 1 deletions
  1. 1 1
      tigcc/ld-tigcc/export/pucrunch.c

+ 1 - 1
tigcc/ld-tigcc/export/pucrunch.c

@@ -193,7 +193,7 @@ static int SavePack(unsigned char *data, int size, EXP_FILE *fp, int escape,
         ExportWrite(fp, data, size, 1);                 // write compressed data
 
         /* Now fix the on-computer size */
-        if (!OutputBin) {
+        if (!OutputBin && !OutputBinMainOnly) {
             long position = ExportTell(fp);
             HI4 packedSizeEnc;
             packedSize += 2 + sizeof (TIOS_HOST_FILE_HEADER) + sizeof (TIOS_HOST_FILE_FOOTER);