]> git.gag.com Git - fw/sdcc/blobdiff - src/SDCCmem.c
1) glue.c added jump to __sdcc_program_start after gsinit.
[fw/sdcc] / src / SDCCmem.c
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 */