From 959679d127a209c40c1c020c858acdf10bb67526 Mon Sep 17 00:00:00 2001 From: sandeep Date: Tue, 22 Feb 2000 19:24:47 +0000 Subject: [PATCH] 1) glue.c added jump to __sdcc_program_start after gsinit. 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 | 3 ++- src/SDCCmem.c | 6 ++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/src/SDCCglue.c b/src/SDCCglue.c index 047074b9..31d54db5 100644 --- a/src/SDCCglue.c +++ b/src/SDCCglue.c @@ -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"); diff --git a/src/SDCCmem.c b/src/SDCCmem.c index c23df68c..d2d9ed37 100644 --- a/src/SDCCmem.c +++ b/src/SDCCmem.c @@ -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 */ -- 2.30.2