replace .cc with .c
[fw/sdcc] / as / hc08 / aslink.h
index 263467a07e5d0c3df7609e366ae13a53c4bf05e9..a3c0ea799bc7f53c361a66ab140c02e9f6efe1a2 100644 (file)
 #define A_XDATA 0100           /* external data space */
 #define A_BIT   0200           /* bit addressable space */
 
+#define A_NOLOAD  0400         /* nonloadable */
+#define A_LOAD  0000           /* loadable (default) */
+
 /*
  * File types
  */
@@ -245,8 +248,10 @@ struct     area
        Addr_T  a_addr;         /* Beginning address of area */
        Addr_T  a_size;         /* Total size of the area */
        char    a_type;         /* Area subtype */
-       char    a_flag;         /* Flag byte */
+       int     a_flag;         /* Flag byte */
        char    a_id[NCPS];     /* Name */
+       char    *a_image;
+       char    *a_used;
 };
 
 /*
@@ -492,7 +497,7 @@ extern      char    ccase[];        /*      an array of characters which
 extern struct  lfile   *filep; /*      The pointers (lfile *) filep,
                                 *      (lfile *) cfp, and (FILE *) sfp
                                 *      are used in conjunction with
-                                *      the routine getline() to read
+                                *      the routine as_getline() to read
                                 *      asmlnk commands from
                                 *      (1) the standard input or
                                 *      (2) or a command file
@@ -674,7 +679,7 @@ extern      char            get();
 extern VOID            getfid();
 extern VOID            getid();
 extern VOID            getSid();
-extern int             getline();
+extern int             as_getline();
 extern int             getmap();
 extern char            getnb();
 extern int             more();
@@ -685,7 +690,7 @@ extern      VOID            chop_crlf();
 /* lkarea.c */
 extern VOID            lkparea();
 extern VOID            lnkarea();
-extern VOID            lnksect();
+extern  Addr_T          lnksect(struct area *tap);
 extern VOID            newarea();
 
 /* lkhead.c */
@@ -773,3 +778,6 @@ extern int summary(struct area * xp);
 /* JCF: lkaomf51.c */
 extern void SaveLinkedFilePath(char * filepath);
 extern void CreateAOMF51(void);
+
+/* EEP: lkelf.c */
+extern VOID            elf();