2) mem.c locals declared 'data' should goto 'data' even in --model-large
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@116
4a8a32a2-be11-0410-ad9d-
d568d2c75423
}
copyFile (asmFile, statsg->oFile);
-
+ fprintf (asmFile,"\tljmp\t__sdcc_program_startup\n");
+
/* copy over code */
fprintf (asmFile, "%s", iComments2);
fprintf (asmFile, "; code\n");
return ;
}
+ if ( SPEC_SCLS(sym->etype) == S_DATA ) {
+ SPEC_OCLS(sym->etype) = (options.noOverlay ? data : overlay );
+ allocIntoSeg(sym) ;
+ return ;
+ }
+
/* again note that we have put it into the overlay segment
will remove and put into the 'data' segment if required after
overlay analysis has been done */