Fixed bug 678574: "ds390: ASlink-Error-Stack overlaps area 'DATA'"
authorjesusc <jesusc@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Sun, 2 Feb 2003 04:00:54 +0000 (04:00 +0000)
committerjesusc <jesusc@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Sun, 2 Feb 2003 04:00:54 +0000 (04:00 +0000)
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@2197 4a8a32a2-be11-0410-ad9d-d568d2c75423

ChangeLog
src/SDCCmain.c

index b331c3d827e7766fa49bf9f8102e06a27c131ba3..132a899077fe558abafbd7fb24c37ef90a610fa9 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2003-02-01  Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
+
+       * src/SDCCmain.c: Fixed bug 678574: "ds390: ASlink-Error-Stack overlaps
+       area 'DATA'"
+
 2003-02-01    <johan@balder>
 
        * src/SDCCval.c (valBitwise): fixed Karl's "2 | (1<<8)"
index e30ab2077f4db52fd897d4220decafe2c639c122..06d3641a915dc8a049dd30d49f30cc58cfa70672 100644 (file)
@@ -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 */