]> git.gag.com Git - fw/sdcc/commitdiff
1) glue.c added jump to __sdcc_program_start after gsinit.
authorsandeep <sandeep@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Tue, 22 Feb 2000 19:24:47 +0000 (19:24 +0000)
committersandeep <sandeep@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Tue, 22 Feb 2000 19:24:47 +0000 (19:24 +0000)
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

src/SDCCglue.c
src/SDCCmem.c

index 047074b9a3cd6ad99b7cde60357002ed6365fa45..31d54db58d89ac1ea92648a81e7a6718be0e6639 100644 (file)
@@ -1044,7 +1044,8 @@ void glue ()
        
     }
     copyFile (asmFile, statsg->oFile);
-    
+    fprintf (asmFile,"\tljmp\t__sdcc_program_startup\n");
+
     /* copy over code */
     fprintf (asmFile, "%s", iComments2);
     fprintf (asmFile, "; code\n");
index c23df68cc311132c79948065664fa9912808d43c..d2d9ed37b6ec7db171a00d3f7c1c0339cedfd2e7 100644 (file)
@@ -595,6 +595,12 @@ void allocLocal ( symbol *sym  )
        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 */