* src/hc08/gen.c (hc08_emitDebuggerSymbol),
[fw/sdcc] / as / hc08 / lkarea.c
index 42cdd4c1efc6a3accd5da074f8b1034e1bd11185..5b8eaf85f87507b854254ce3c6429b1bdc14b4f2 100644 (file)
@@ -350,7 +350,12 @@ lnkarea()
                         * Relocatable sections
                         */
                        if (ap->a_type == 0) {  /* JLH */
-                               ap->a_addr = rloc[ locIndex ];
+                               if (ap->a_flag & A_NOLOAD) {
+                                       locIndex = 2;
+                                       ap->a_addr = 0;
+                               } else {
+                                       ap->a_addr = rloc[ locIndex ];
+                               }
                                ap->a_type = 1;
                        }
                        lnksect(ap);