Oops
[fw/sdcc] / src / avr / main.c
index 9ce3cd8ab26424614859d38fd92aebb0b25a2c51..5d5a323716eadfc806049c7a1cfb554e0dcfbc6b 100644 (file)
@@ -138,12 +138,12 @@ _avr_genIVT (FILE * of, symbol ** interrupts, int maxInterrupts)
     MUST be terminated with a NULL.
 */
 static const char *_linkCmd[] = {
-       "linkavr", "", "$1", NULL
+       "linkavr", "", "\"$1\"", NULL
 };
 
 /* $3 is replaced by assembler.debug_opts resp. port->assembler.plain_opts */
 static const char *_asmCmd[] = {
-       "asavr", "$l" , "$3", "$1.s", NULL
+       "asavr", "$l" , "$3", "\"$1.s\"", NULL
 };
 
 /* Globals */
@@ -153,6 +153,7 @@ PORT avr_port = {
        "ATMEL AVR",            /* Target name */
        NULL,                   /* processor */
        {
+         glue,
         TRUE,                  /* Emit glue around main */
         MODEL_LARGE | MODEL_SMALL,
         MODEL_SMALL},
@@ -194,6 +195,7 @@ PORT avr_port = {
         NULL,
         0,
         },
+        { NULL, NULL },
        {
         -1, 1, 4, 1, 1, 0},
        /* avr has an 8 bit mul */