* src/hc08/gen.c (hc08_emitDebuggerSymbol),
[fw/sdcc] / as / hc08 / lkelf.c
index edaad5bce4169cf4d0713e77d35d2dfe32220e21..3cc602fd483de07718419311c0c42af01075ddd5 100644 (file)
@@ -753,7 +753,7 @@ elf (int i)
         }
 
       /* Copy the data into the image buffer */
-      for (i = 2; i < rtcnt ; i++, address++)
+      for (i = 2; i < rtcnt ; i++)
         {
           if (rtflg[i])
             {
@@ -775,6 +775,7 @@ elf (int i)
                       execStartLSBfound = 1;
                     }
                 }
+             address++;
             }
         }
     }