xref: /inferno-os/utils/5coff/auxi.h (revision 74a4d8c26dd3c1e9febcb717cfd6cb6512991a7a)
1 #define	COFFCVT
2 #define	Sym	Symx
3 #include "../5l/l.h"
4 #undef Sym
5 #include	<mach.h>
6 
7 /*
8  * auxi.c
9  */
10 extern	Symx *hash[NHASH];
11 Symx	*lookupsym(char*, int);
12 void	beginsym(void);
13 void	endsym(void);
14 void	newsym(int, char*, long, int);
15 
16 extern	long	autosize;
17 extern	Prog *firstp, *textp, *curtext, *lastp, *etextp;
18 
19 /*
20  * coff.c
21  */
22 void	coffhdr(void);
23 void	coffsym(void);
24 void	cofflc(void);
25 void	endsym(void);
26 
27 /*
28  * 5coff.c
29  */
30 void	cflush(void);
31 void	lput(long);
32 void	cput(int);
33 void	hputl(int);
34 void	lputl(long);
35 long	entryvalue(void);
36 void	diag(char*, ...);
37 extern	long	HEADR;			/* length of header */
38 extern	long	INITDAT;		/* data location */
39 extern	long	INITRND;		/* data round above text location */
40 extern	long	INITTEXT;		/* text location */
41 extern	long	INITENTRY;		/* entry point */
42 extern	long	textsize;
43 extern	long	datsize;
44 extern	long	bsssize;
45 extern	int	cout;
46 extern	int	thumb;
47