X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=as%2Fhc08%2Faslink.h;h=a3c0ea799bc7f53c361a66ab140c02e9f6efe1a2;hb=a2c19ef9599c5fcd6430833724b846014f397749;hp=263467a07e5d0c3df7609e366ae13a53c4bf05e9;hpb=badb689faae2cb5c930988943c5fd4c73922525c;p=fw%2Fsdcc diff --git a/as/hc08/aslink.h b/as/hc08/aslink.h index 263467a0..a3c0ea79 100644 --- a/as/hc08/aslink.h +++ b/as/hc08/aslink.h @@ -186,6 +186,9 @@ #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();