X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=as%2Fhc08%2Flkelf.c;h=3cc602fd483de07718419311c0c42af01075ddd5;hb=1b72a548b29b46947ae864f13d152babcf0f8c7e;hp=d024770b55ad839ca52bf6b5a79851b55be4a091;hpb=7709397297c098d91f4e0745713ca6a39459adf2;p=fw%2Fsdcc diff --git a/as/hc08/lkelf.c b/as/hc08/lkelf.c index d024770b..3cc602fd 100644 --- a/as/hc08/lkelf.c +++ b/as/hc08/lkelf.c @@ -23,7 +23,16 @@ #include #include #include "aslink.h" -#include "sdccconf.h" + +#ifdef _WIN32 +# ifdef __MINGW32__ /* GCC MINGW32 depends on configure */ +# include "sdccconf.h" +# else +# include "sdcc_vc.h" +# endif +#else /* Assume Un*x style system */ +# include "sdccconf.h" +#endif static int execStartMSB; static int execStartLSB; @@ -744,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]) { @@ -766,6 +775,7 @@ elf (int i) execStartLSBfound = 1; } } + address++; } } }