DS800C400 fun, improved ROM interface and tinibios
[fw/sdcc] / src / SDCCmain.c
index abcd1bab0ce5e5b8704fee51dce4bf34cbaa6e10..bda73ad70187bff57ee89ea517fdc64ac9792a1a 100644 (file)
@@ -1349,6 +1349,12 @@ linkEdit (char **envp)
   if ( (options.stack_loc) && (options.stack_loc<0x100) ) {
        WRITE_SEG_LOC ("SSEG", options.stack_loc);
   }
+  
+  /* If the port has any special linker area declarations, get 'em */
+  if (port->extraAreas.genExtraAreaLinkOptions)
+  {
+       port->extraAreas.genExtraAreaLinkOptions(lnkfile);
+  }
 
   /* add the extra linker options */
   fputStrSet(lnkfile, linkOptionsSet);