From 3c240eff2f267cd83dcf5960e617eda810b94b36 Mon Sep 17 00:00:00 2001 From: jesusc Date: Sun, 2 Feb 2003 04:00:54 +0000 Subject: [PATCH] Fixed bug 678574: "ds390: ASlink-Error-Stack overlaps area 'DATA'" git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@2197 4a8a32a2-be11-0410-ad9d-d568d2c75423 --- ChangeLog | 5 +++++ src/SDCCmain.c | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index b331c3d8..132a8990 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2003-02-01 Jesus Calvino-Fraga + + * src/SDCCmain.c: Fixed bug 678574: "ds390: ASlink-Error-Stack overlaps + area 'DATA'" + 2003-02-01 * src/SDCCval.c (valBitwise): fixed Karl's "2 | (1<<8)" diff --git a/src/SDCCmain.c b/src/SDCCmain.c index e30ab207..06d3641a 100644 --- a/src/SDCCmain.c +++ b/src/SDCCmain.c @@ -1265,8 +1265,8 @@ linkEdit (char **envp) WRITE_SEG_LOC (BIT_NAME, 0); /* JCF: stack start */ - if(options.stack_loc) { - WRITE_SEG_LOC ("SSEG", options.stack_loc & 0xff); + if ( (options.stack_loc) && (options.stack_loc<0x100) ) { + WRITE_SEG_LOC ("SSEG", options.stack_loc); } /* add the extra linker options */ -- 2.47.2