* src/SDCCglue.c (glue): make sure code area is declared before the
authorepetrich <epetrich@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Sat, 22 Jan 2005 01:03:55 +0000 (01:03 +0000)
committerepetrich <epetrich@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Sat, 22 Jan 2005 01:03:55 +0000 (01:03 +0000)
static initialization area.

git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@3643 4a8a32a2-be11-0410-ad9d-d568d2c75423

ChangeLog
src/SDCCglue.c

index 823e3be04094f691f83ffab1dffdc53842f8ffc9..a8006326e8b38f527fd5e223b5bde5eceb610d20 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2004-01-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
+
+       * src/SDCCglue.c (glue): make sure code area is declared before the
+       static initialization area.
+
 2005-01-21 Raphael Neider <rneider AT web.de>
 
        * device/lib/Makefile.in: fixed test for pic16 install dir
index bf3c1ac46fa1a4a869d0e196f38e47234b44e98f..21edf2b9868977a74af5ee0c0f74e0ca8410d003 100644 (file)
@@ -1813,6 +1813,7 @@ glue (void)
    * the post_static_name area will immediately follow the static_name
    * area.
    */
+  tfprintf (asmFile, "\t!area\n", port->mem.code_name);
   tfprintf (asmFile, "\t!area\n", port->mem.static_name);       /* MOF */
   tfprintf (asmFile, "\t!area\n", port->mem.post_static_name);
   tfprintf (asmFile, "\t!area\n", port->mem.static_name);