ref: b95034ed959dbc24a91df409a35ae8282ba15cdd
dir: /src/cmd/ld/ld.h/
struct obj; struct objsym; typedef struct objlst Objlst; typedef struct symbol Symbol; typedef struct section Section; struct section { char *name; unsigned long base; unsigned long long size; unsigned flags; int type; FILE *fp; Section *next; }; struct objlst { struct obj *obj; struct objlst *next; }; struct symbol { char *name; struct obj *obj; struct objsym *def; unsigned long long size, value; struct symbol *next, *prev; struct symbol *hash; }; /* passes */ extern void pass1(int argc, char *argv[]); extern void pass2(int argc, char *argv[]); extern void pass3(int argc, char *argv[]); extern void pass4(int argc, char *argv[]); /* main.c */ extern char *errstr(void); extern void error(char *fmt, ...); /* symbol.c */ extern Symbol *lookup(char *name); extern Symbol *install(char *name); extern int debugsym(void); /* globals */ extern char *filename, *membname; extern unsigned long textsiz, datasiz, bsssiz; extern unsigned long textbase, database, bssbase; extern int sflag; extern int xflag; extern int Xflag; extern int rflag; extern int dflag; extern int gflag; extern char *Dflag; extern Objlst *objhead;