replace non-ANSI strcmpi by as_strcmpi
[fw/sdcc] / as / mcs51 / aslink.h
1 /* aslink.h */
2
3 /*
4  * (C) Copyright 1989-1995
5  * All Rights Reserved
6  *
7  * Alan R. Baldwin
8  * 721 Berkeley St.
9  * Kent, Ohio  44240
10  *
11  * 28-Oct-97 JLH: 
12  *           - add proto for StoreString
13  *           - change s_id from [NCPS] to pointer
14  *           - change NCPS to 80
15  *           - case sensitive
16  *           - add R_J11 for 8051 assembler
17  * 31-Oct-97 JLH: 
18  *           - add jflag and jfp for NoICE output
19  * 30-Jan-98 JLH:
20  *           - add memory space flags to a_flag for 8051
21  */
22
23 #define VERSION "V01.70 + NoICE + SDCC Feb 1999"
24
25 /*
26  * Case Sensitivity Flag
27  */
28 #define CASE_SENSITIVE  1
29
30 /*)Module       asmlnk.h
31  *
32  *      The module asmlnk.h contains the definitions for constants,
33  *      structures, global variables, and LKxxxx functions
34  *      contained in the LKxxxx.c files.
35  */
36
37 /*)BUILD
38         $(PROGRAM) =    ASLINK
39         $(INCLUDE) =    ASLINK.H
40         $(FILES) = {
41                 LKMAIN.C
42                 LKLEX.C
43                 LKAREA.C
44                 LKHEAD.C
45                 LKSYM.C
46                 LKEVAL.C
47                 LKDATA.C
48                 LKLIST.C
49                 LKRLOC.C
50                 LKLIBR.C
51                 LKS19.C
52                 LKIHX.C
53         }
54         $(STACK) = 2000
55 */
56
57 /* DECUS C void definition */
58 /* File/extension seperator */
59
60 #ifdef  decus
61 #define VOID    char
62 #define FSEPX   '.'
63 #endif
64
65 /* PDOS C void definition */
66 /* File/extension seperator */
67
68 #ifdef  PDOS
69 #define VOID    char
70 #define FSEPX   ':'
71 #endif
72
73 /* Default void definition */
74 /* File/extension seperator */
75
76 #ifndef VOID
77 #define VOID    void
78 #define FSEPX   '.'
79 #define OTHERSYSTEM 
80 #endif
81
82 /*
83  * PATH_MAX
84  */
85 #include <limits.h>
86 #ifndef PATH_MAX                /* POSIX, but not required   */
87  #if defined(__BORLANDC__) || defined(_MSC_VER)
88   #include <stdlib.h>
89   #define PATH_MAX      _MAX_PATH
90  #else
91   #define PATH_MAX      255     /* define a reasonable value */
92  #endif
93 #endif
94
95 /*
96  * This file defines the format of the
97  * relocatable binary file.
98  */
99
100 #define NCPS    80              /* characters per symbol (JLH: change from 8) */
101 #define NDATA   16              /* actual data */
102 #define NINPUT  PATH_MAX        /* Input buffer size */
103 #define NHASH   64              /* Buckets in hash table */
104 #define HMASK   077             /* Hash mask */
105 #define NLPP    60              /* Lines per page */
106 #define NTXT    16              /* T values */
107
108 /*
109  *      The "R_" relocation constants define values used in
110  *      generating the assembler relocation output data for
111  *      areas, symbols, and code.
112  *
113  *
114  *      Relocation types.
115  *
116  *             7     6     5     4     3     2     1     0
117  *          +-----+-----+-----+-----+-----+-----+-----+-----+
118  *          | MSB | PAGn| PAG0| USGN| BYT2| PCR | SYM | BYT |
119  *          +-----+-----+-----+-----+-----+-----+-----+-----+
120  */
121
122 #define R_WORD  0x00            /* 16 bit */
123 #define R_BYTE  0x01            /*  8 bit */
124
125 #define R_AREA  0x00            /* Base type */
126 #define R_SYM   0x02
127
128 #define R_NORM  0x00            /* PC adjust */
129 #define R_PCR   0x04
130
131 #define R_BYT1  0x00            /* Byte count for R_BYTE = 1 */
132 #define R_BYT2  0x08            /* Byte count for R_BYTE = 2 */
133
134 #define R_SGND  0x00            /* Signed Byte */
135 #define R_USGN  0x10            /* Unsigned Byte */
136
137 #define R_NOPAG 0x00            /* Page Mode */
138 #define R_PAG0  0x20            /* Page '0' */
139 #define R_PAG   0x40            /* Page 'nnn' */
140
141 #define R_LSB   0x00            /* low byte */
142 #define R_MSB   0x80            /* high byte */
143
144 #define R_BYT3  0x100           /* if R_BYTE is set, this is a 
145                                  * 3 byte address, of which
146                                  * the linker must select one byte.
147                                  */
148 #define R_HIB   0x200           /* If R_BYTE & R_BYT3 are set, linker
149                                  * will select byte 3 of the relocated
150                                  * 24 bit address.
151                                  */
152
153 #define R_J11   (R_WORD|R_BYT2) /* JLH: 11 bit JMP and CALL (8051) */
154 #define R_J19   (R_WORD|R_BYT2|R_MSB) /* 19 bit JMP/CALL (DS80C390) */
155 #define R_C24   (R_WORD|R_BYT1|R_MSB) /* 24 bit address (DS80C390) */
156 #define R_J19_MASK (R_BYTE|R_BYT2|R_MSB)
157
158 #define IS_R_J19(x) (((x) & R_J19_MASK) == R_J19)
159 #define IS_R_J11(x) (((x) & R_J19_MASK) == R_J11)
160 #define IS_C24(x) (((x) & R_J19_MASK) == R_C24)
161
162 #define R_ESCAPE_MASK   0xf0    /* Used to escape relocation modes
163                                  * greater than 0xff in the .rel
164                                  * file.
165                                  */
166
167 /*
168  * Global symbol types.
169  */
170 #define S_REF   1               /* referenced */
171 #define S_DEF   2               /* defined */
172
173 /*
174  * Area type flags
175  */
176 #define A_CON   0000            /* concatenate */
177 #define A_OVR   0004            /* overlay */
178 #define A_REL   0000            /* relocatable */
179 #define A_ABS   0010            /* absolute */
180 #define A_NOPAG 0000            /* non-paged */
181 #define A_PAG   0020            /* paged */
182
183 /* Additional flags for 8051 address spaces */
184 #define A_DATA  0000            /* data space (default)*/
185 #define A_CODE  0040            /* code space */
186 #define A_XDATA 0100            /* external data space */
187 #define A_BIT   0200            /* bit addressable space */
188
189 /*
190  * File types
191  */
192 #define F_STD   1               /* stdin */
193 #define F_LNK   2               /* File.lnk */
194 #define F_REL   3               /* File.rel */
195
196 /*
197  *      General assembler address type
198  */
199 typedef unsigned int Addr_T;
200
201 /*
202  *      The structures of head, area, areax, and sym are created
203  *      as the REL files are read during the first pass of the
204  *      linker.  The struct head is created upon encountering a
205  *      H directive in the REL file.  The structure contains a
206  *      link to a link file structure (struct lfile) which describes
207  *      the file containing the H directive, the number of data/code
208  *      areas contained in this header segment, the number of
209  *      symbols referenced/defined in this header segment, a pointer
210  *      to an array of pointers to areax structures (struct areax)
211  *      created as each A directive is read, and a pointer to an
212  *      array of pointers to symbol structures (struct sym) for
213  *      all referenced/defined symbols.  As H directives are read
214  *      from the REL files a linked list of head structures is
215  *      created by placing a link to the new head structure
216  *      in the previous head structure.
217  */
218 struct  head
219 {
220         struct  head   *h_hp;   /* Header link */
221         struct  lfile  *h_lfile;/* Associated file */
222         int     h_narea;        /* # of areas */
223         struct  areax **a_list; /* Area list */
224         int     h_nglob;        /* # of global symbols */
225         struct  sym   **s_list; /* Globle symbol list */
226         char    m_id[NCPS];     /* Module name */
227 };
228
229 /*
230  *      A structure area is created for each 'unique' data/code
231  *      area definition found as the REL files are read.  The
232  *      struct area contains the name of the area, a flag byte
233  *      which contains the area attributes (REL/CON/OVR/ABS),
234  *      an area subtype (not used in this assembler), and the
235  *      area base address and total size which will be filled
236  *      in at the end of the first pass through the REL files.
237  *      As A directives are read from the REL files a linked
238  *      list of unique area structures is created by placing a
239  *      link to the new area structure in the previous area structure.
240  */
241 struct  area
242 {
243         struct  area    *a_ap;  /* Area link */
244         struct  areax   *a_axp; /* Area extension link */
245         Addr_T  a_addr;         /* Beginning address of area */
246         Addr_T  a_size;         /* Total size of the area */
247         char    a_type;         /* Area subtype */
248         char    a_flag;         /* Flag byte */
249         char    a_id[NCPS];     /* Name */
250 };
251
252 /*
253  *      An areax structure is created for every A directive found
254  *      while reading the REL files.  The struct areax contains a
255  *      link to the 'unique' area structure referenced by the A
256  *      directive and to the head structure this area segment is
257  *      a part of.  The size of this area segment as read from the
258  *      A directive is placed in the areax structure.  The beginning
259  *      address of this segment will be filled in at the end of the
260  *      first pass through the REL files.  As A directives are read
261  *      from the REL files a linked list of areax structures is
262  *      created for each unique area.  The final areax linked
263  *      list has at its head the 'unique' area structure linked
264  *      to the linked areax structures (one areax structure for
265  *      each A directive for this area).
266  */
267 struct  areax
268 {
269         struct  areax   *a_axp; /* Area extension link */
270         struct  area    *a_bap; /* Base area link */
271         struct  head    *a_bhp; /* Base header link */
272         Addr_T  a_addr;         /* Beginning address of section */
273         Addr_T  a_size;         /* Size of the area in section */
274 };
275
276 /*
277  *      A sym structure is created for every unique symbol
278  *      referenced/defined while reading the REL files.  The
279  *      struct sym contains the symbol's name, a flag value
280  *      (not used in this linker), a symbol type denoting
281  *      referenced/defined, and an address which is loaded
282  *      with the relative address within the area in which
283  *      the symbol was defined.  The sym structure also
284  *      contains a link to the area where the symbol was defined.
285  *      The sym structures are linked into linked lists using
286  *      the symbol link element.
287  */
288 struct  sym
289 {
290         struct  sym     *s_sp;  /* Symbol link */
291         struct  areax   *s_axp; /* Symbol area link */
292         char    s_type;         /* Symbol subtype */
293         char    s_flag;         /* Flag byte */
294         Addr_T  s_addr;         /* Address */
295         char    *s_id;          /* Name: JLH change from [NCPS] */
296 };
297
298 /*
299  *      The structure lfile contains a pointer to a
300  *      file specification string, the file type, and
301  *      a link to the next lfile structure.
302  */
303 struct  lfile
304 {
305         struct  lfile   *f_flp; /* lfile link */
306         int     f_type;         /* File type */
307         char    *f_idp;         /* Pointer to file spec */
308 };
309
310 /*
311  *      The struct base contains a pointer to a
312  *      base definition string and a link to the next
313  *      base structure.
314  */
315 struct  base
316 {
317         struct  base  *b_base;  /* Base link */
318         char          *b_strp;  /* String pointer */
319 };
320
321 /*
322  *      The struct globl contains a pointer to a
323  *      global definition string and a link to the next
324  *      global structure.
325  */
326 struct  globl
327 {
328         struct  globl *g_globl; /* Global link */
329         char          *g_strp;  /* String pointer */
330 };
331
332 /*
333  *      A structure sdp is created for each 'unique' paged
334  *      area definition found as the REL files are read.
335  *      As P directives are read from the REL files a linked
336  *      list of unique sdp structures is created by placing a
337  *      link to the new sdp structure in the previous area structure.
338  */
339 struct  sdp
340 {
341         struct  area  *s_area;  /* Paged Area link */
342         struct  areax *s_areax; /* Paged Area Extension Link */
343         Addr_T  s_addr;         /* Page address offset */
344 };
345
346 /*
347  *      The structure rerr is loaded with the information
348  *      required to report an error during the linking
349  *      process.  The structure contains an index value
350  *      which selects the areax structure from the header
351  *      areax structure list, a mode value which selects
352  *      symbol or area relocation, the base address in the
353  *      area section, an area/symbol list index value, and
354  *      an area/symbol offset value.
355  */
356 struct  rerr
357 {
358         int     aindex;         /* Linking area */
359         int     mode;           /* Relocation mode */
360         Addr_T  rtbase;         /* Base address in section */
361         int     rindex;         /* Area/Symbol reloaction index */
362         Addr_T  rval;           /* Area/Symbol offset value */
363 };
364
365 /*
366  *      The structure lbpath is created for each library
367  *      path specification input by the -k option.  The
368  *      lbpath structures are linked into a list using
369  *      the next link element.
370  */
371 struct lbpath {
372         struct  lbpath  *next;
373         char            *path;
374 };
375
376 /*
377  *      The structure lbname is created for all combinations of the
378  *      library path specifications (input by the -k option) and the
379  *      library file specifications (input by the -l option) that
380  *      lead to an existing file.  The element path points to
381  *      the path string, element libfil points to the library
382  *      file string, and the element libspc is the concatenation
383  *      of the valid path and libfil strings.
384  *
385  *      The lbpath structures are linked into a list
386  *      using the next link element.
387  *
388  *      Each library file contains a list of object files
389  *      that are contained in the particular library. e.g.:
390  *
391  *              \iolib\termio
392  *              \inilib\termio
393  *
394  *      Only one specification per line is allowed.
395  */
396 struct lbname {
397         struct  lbname  *next;
398         char            *path;
399         char            *libfil;
400         char            *libspc;
401 };
402
403 /*
404  *      The function fndsym() searches through all combinations of the
405  *      library path specifications (input by the -k option) and the
406  *      library file specifications (input by the -l option) that
407  *      lead to an existing file for a symbol definition.
408  *
409  *      The structure lbfile is created for the first library
410  *      object file which contains the definition for the
411  *      specified undefined symbol.
412  *
413  *      The element libspc points to the library file path specification
414  *      and element relfil points to the object file specification string.
415  *      The element filspc is the complete path/file specification for
416  *      the library file to be imported into the linker.  The
417  *      file specicifation may be formed in one of two ways:
418  *
419  *      (1)     If the library file contained an absolute
420  *              path/file specification then this becomes filspc.
421  *              (i.e. C:\...)
422  *
423  *      (2)     If the library file contains a relative path/file
424  *              specification then the concatenation of the path
425  *              and this file specification becomes filspc.
426  *              (i.e. \...)
427  *
428  *      The lbpath structures are linked into a list
429  *      using the next link element.
430  */
431 struct lbfile {
432         struct  lbfile  *next;
433         char            *libspc;
434         char            *relfil;
435         char            *filspc;
436 };
437
438 /*
439  *      External Definitions for all Global Variables
440  */
441
442 extern  char    *_abs_;         /*      = { ".  .ABS." };
443                                  */
444 extern  int     lkerr;          /*      ASLink error flag
445                                  */
446 extern  char    *ip;            /*      pointer into the REL file
447                                  *      text line in ib[]
448                                  */
449 extern  char    ib[NINPUT];     /*      REL file text line
450                                  */
451 extern  char    *rp;            /*      pointer into the LST file
452                                  *      text line in rb[]
453                                  */
454 extern  char    rb[NINPUT];     /*      LST file text line being
455                                  *      address relocated
456                                  */
457 extern  unsigned char   ctype[];        /*      array of character types, one per
458                                  *      ASCII character
459                                  */
460
461 /*
462  *      Character Type Definitions
463  */
464 #define SPACE   0000
465 #define ETC     0000
466 #define LETTER  0001
467 #define DIGIT   0002
468 #define BINOP   0004
469 #define RAD2    0010
470 #define RAD8    0020
471 #define RAD10   0040
472 #define RAD16   0100
473 #define ILL     0200
474
475 #define DGT2    DIGIT|RAD16|RAD10|RAD8|RAD2
476 #define DGT8    DIGIT|RAD16|RAD10|RAD8
477 #define DGT10   DIGIT|RAD16|RAD10
478 #define LTR16   LETTER|RAD16
479
480 #if     CASE_SENSITIVE
481 #else
482 extern  char    ccase[];        /*      an array of characters which
483                                  *      perform the case translation function
484                                  */
485 #endif
486
487 extern  struct  lfile   *filep; /*      The pointers (lfile *) filep,
488                                  *      (lfile *) cfp, and (FILE *) sfp
489                                  *      are used in conjunction with
490                                  *      the routine getline() to read
491                                  *      asmlnk commands from
492                                  *      (1) the standard input or
493                                  *      (2) or a command file
494                                  *      and to read the REL files
495                                  *      sequentially as defined by the
496                                  *      asmlnk input commands.
497                                  *
498                                  *      The pointer *filep points to the
499                                  *      beginning of a linked list of
500                                  *      lfile structures.
501                                  */
502 extern  struct  lfile   *cfp;   /*      The pointer *cfp points to the
503                                  *      current lfile structure
504                                  */
505 extern  struct  lfile   *startp;/*      asmlnk startup file structure
506                                  */
507 extern  struct  lfile   *linkp; /*      pointer to first lfile structure
508                                  *      containing an input REL file
509                                  *      specification
510                                  */
511 extern  struct  lfile   *lfp;   /*      pointer to current lfile structure
512                                  *      being processed by parse()
513                                  */
514 extern  struct  head    *headp; /*      The pointer to the first
515                                  *      head structure of a linked list
516                                  */
517 extern  struct  head    *hp;    /*      Pointer to the current
518                                  *      head structure
519                                  */
520 extern  struct  area    *areap; /*      The pointer to the first
521                                  *      area structure of a linked list
522                                  */
523 extern  struct  area    *ap;    /*      Pointer to the current
524                                  *      area structure
525                                  */
526 extern  struct  areax   *axp;   /*      Pointer to the current
527                                  *      areax structure
528                                  */
529 extern  struct  sym *symhash[NHASH]; /* array of pointers to NHASH
530                                       * linked symbol lists
531                                       */
532 extern  struct  base    *basep; /*      The pointer to the first
533                                  *      base structure
534                                  */
535 extern  struct  base    *bsp;   /*      Pointer to the current
536                                  *      base structure
537                                  */
538 extern  struct  globl   *globlp;/*      The pointer to the first
539                                  *      globl structure
540                                  */
541 extern  struct  globl   *gsp;   /*      Pointer to the current
542                                  *      globl structure
543                                  */
544 extern  struct  sdp     sdp;    /*      Base Paged structure
545                                  */
546 extern  struct  rerr    rerr;   /*      Structure containing the
547                                  *      linker error information
548                                  */
549 extern  FILE    *ofp;           /*      Linker Output file handle
550                                  */
551 extern  FILE    *mfp;           /*      Map output file handle
552                                  */
553 extern  FILE    *jfp;           /*      NoICE output file handle
554                                  */
555 extern  FILE    *rfp;           /*      File handle for output
556                                  *      address relocated ASxxxx
557                                  *      listing file
558                                  */
559 extern  FILE    *sfp;           /*      The file handle sfp points to the
560                                  *      currently open file
561                                  */
562 extern  FILE    *tfp;           /*      File handle for input
563                                  *      ASxxxx listing file
564                                  */
565 extern  FILE    *dfp;           /*      File handle for debug info output
566                                  */
567 extern  int     dflag;          /*      Output debug information flag
568                                  */
569 extern  int     oflag;          /*      Output file type flag
570                                  */
571 extern  int     mflag;          /*      Map output flag
572                                  */
573 extern  int     sflag;          /*      JCF: Memory usage output flag
574                                  */
575 extern  int     jflag;          /*      NoICE output flag
576                                  */
577 extern  int     xflag;          /*      Map file radix type flag
578                                  */
579 extern  int     pflag;          /*      print linker command file flag
580                                  */
581 extern  int     uflag;          /*      Listing relocation flag
582                                  */
583 extern int      rflag;          /*      Extended linear address record flag.
584                                 */                               
585 extern  int     radix;          /*      current number conversion radix:
586                                  *      2 (binary), 8 (octal), 10 (decimal),
587                                  *      16 (hexadecimal)
588                                  */
589 extern  int     line;           /*      current line number
590                                  */
591 extern  int     page;           /*      current page number
592                                  */
593 extern  int     lop;            /*      current line number on page
594                                  */
595 extern  int     pass;           /*      linker pass number
596                                  */
597 extern  int     rtcnt;          /*      count of elements in the
598                                  *      rtval[] and rtflg[] arrays
599                                  */
600 extern  Addr_T  rtval[];        /*      data associated with relocation
601                                  */
602 extern  int     rtflg[];        /*      indicates if rtval[] value is
603                                  *      to be sent to the output file.
604                                  *      (always set in this linker)
605                                  */
606 extern  int     hilo;           /*      REL file byte ordering
607                                  */
608 extern  int     gline;          /*      LST file relocation active
609                                  *      for current line
610                                  */
611 extern  int     gcntr;          /*      LST file relocation active
612                                  *      counter
613                                  */
614 extern  struct lbpath *lbphead; /*      pointer to the first
615                                  *      library path structure
616                                  */
617 extern  struct lbname *lbnhead; /*      pointer to the first
618                                  *      library name structure
619                                  */
620 extern  struct lbfile *lbfhead; /*      pointer to the first
621                                  *      library file structure
622                                  */
623 extern  Addr_T iram_size;       /*      internal ram size
624                                  */
625
626
627 /* C Library function definitions */
628 /* for reference only
629 extern  VOID            exit();
630 extern  int             fclose();
631 extern  char *          fgets();
632 extern  FILE *          fopen();
633 extern  int             fprintf();
634 extern  VOID            free();
635 extern  VOID *          malloc();
636 extern  char            putc();
637 extern  char *          strcpy();
638 extern  int             strlen();
639 extern  char *          strncpy();
640 */
641
642 /* Program function definitions */
643
644 /* lkmain.c */
645 extern  FILE *          afile();
646 extern  VOID            bassav();
647 extern  VOID            gblsav();
648 extern  VOID            iramsav();
649 extern  VOID            iramcheck();
650 extern  VOID            link_main();
651 extern  VOID            lkexit();
652 extern  int             main();
653 extern  VOID            map();
654 extern  int             parse();
655 extern  VOID            setbas();
656 extern  VOID            setgbl();
657 extern  VOID            usage();
658 extern  VOID            copyfile();
659
660 /* lklex.c */
661 extern  char            endline();
662 extern  char            get();
663 extern  VOID            getfid();
664 extern  VOID            getid();
665 extern  VOID            getSid();
666 extern  int             getline();
667 extern  int             getmap();
668 extern  char            getnb();
669 extern  int             more();
670 extern  VOID            skip();
671 extern  VOID            unget();
672 extern  VOID            chop_crlf();
673
674 /* lkarea.c */
675 extern  VOID            lkparea();
676 extern  VOID            lnkarea();
677 extern  VOID            lnksect();
678 extern  VOID            newarea();
679
680 /* lkhead.c */
681 extern  VOID            module();
682 extern  VOID            newhead();
683
684 /* lksym.c */
685 extern  int             hash();
686 extern  struct  sym *   lkpsym();
687 extern  VOID *          new();
688 extern  struct  sym *   newsym();
689 extern  VOID            symdef();
690 extern  int             symeq();
691 extern  VOID            syminit();
692 extern  VOID            symmod();
693 extern  Addr_T          symval();
694
695 /* lkeval.c */
696 extern  int             digit();
697 extern  Addr_T          eval();
698 extern  Addr_T          expr();
699 extern  int             oprio();
700 extern  Addr_T          term();
701
702 /* lklist.c */
703 extern  int             dgt();
704 extern  VOID            lkulist();
705 extern  VOID            lkalist();
706 extern  VOID            lkglist();
707 extern  VOID            lstarea();
708 extern  VOID            newpag();
709 extern  VOID            slew();
710
711 /* lkrloc.c */
712 extern  Addr_T          adb_b();
713 extern  Addr_T          adb_hi();
714 extern  Addr_T          adb_lo();
715 extern  Addr_T          adb_24_hi(Addr_T v, int i);
716 extern  Addr_T          adb_24_mid(Addr_T v, int i);
717 extern  Addr_T          adb_24_lo(Addr_T v, int i);
718 extern  Addr_T          adw_w();
719 extern  Addr_T          adw_24(Addr_T, int);
720 extern  Addr_T          adw_hi();
721 extern  Addr_T          adw_lo();
722 extern  Addr_T          evword();
723 extern  VOID            rele();
724 extern  VOID            reloc();
725 extern  VOID            relt();
726 extern  VOID            relr();
727 extern  VOID            relp();
728 extern  VOID            relerr();
729 extern  char *          errmsg[];
730 extern  VOID            errdmp();
731 extern  VOID            relerp();
732 extern  VOID            erpdmp();
733 extern  VOID            prntval();
734 extern  int             lastExtendedAddress;
735
736 /* lklibr.c */
737 extern  VOID            addfile();
738 extern  VOID            addlib();
739 extern  VOID            addpath();
740 extern  int             fndsym();
741 extern  VOID            library();
742 extern  VOID            loadfile();
743 extern  VOID            search();
744
745 /* lks19.c */
746 extern  VOID            s19();
747
748 /* lkihx.c */
749 extern  VOID            ihx();
750 extern  VOID            ihxEntendedLinearAddress(Addr_T);
751 /* lkstore.c */
752 extern char             *StoreString( char *str );
753
754 /* lknoice.c */
755 extern void             DefineNoICE( char *name, Addr_T value, int page );
756
757 /* JCF: lkmem.c */
758 extern int summary(struct area * xp);
759
760 /* JCF: lkaomf51.c */
761 extern void SaveLinkedFilePath(char * filepath);
762 extern void CreateAOMF51(void);