xref: /csrg-svn/usr.bin/pascal/pdx/object.h (revision 5454)
1*5454Slinton /* Copyright (c) 1982 Regents of the University of California */
2*5454Slinton 
3*5454Slinton static char sccsid[] = "@(#)object.h 1.1 01/18/82";
4*5454Slinton 
5*5454Slinton /*
6*5454Slinton  * Object module definitions.
7*5454Slinton  *
8*5454Slinton  * The object module is the interface to the object file; in particular
9*5454Slinton  * it contains the routines that read symbol and line number information.
10*5454Slinton  */
11*5454Slinton 
12*5454Slinton char *objname;			/* name of object file */
13*5454Slinton int objsize;			/* size of object code */
14*5454Slinton 
15*5454Slinton struct {
16*5454Slinton 	unsigned int stringsize;	/* size of the dumped string table */
17*5454Slinton 	unsigned int nsyms;		/* number of symbols */
18*5454Slinton 	unsigned int nfiles;		/* number of files */
19*5454Slinton 	unsigned int nlines;		/* number of lines */
20*5454Slinton } nlhdr;
21*5454Slinton 
22*5454Slinton char *stringtab;	/* string table */
23*5454Slinton char *dotpfile;		/* name of compiled file */
24*5454Slinton 
25*5454Slinton #define SIZELOC 1016	/* location of objsize in obj file */
26*5454Slinton #define BASEADDR 1024	/* beginning of object code */
27*5454Slinton 
28*5454Slinton readobj();		/* read in the object file */
29*5454Slinton objfree();		/* release storage for object file information */
30