shithub: scc

ref: 38d360b9a0c73d60a5e8e8df65854c53d6f145f5
dir: /src/cmd/ld/ld.h/

View raw version
/* 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[]);
extern void pass5(int argc, char *argv[]);

/* main.c */
extern void error(char *fmt, ...);
extern char *nextarg(char **argp, char ***argv);

/* symbol.c */
extern int hasref(char *name);
extern Symbol *lookupsym(char *name);
extern int moreundef(void);
extern void listundef(void);
extern Symbol *define(Symbol *osym, Obj *obj);
extern void debugsym(void);

/* section.c */
extern Section *lookupsec(char *name);
extern void copy(Obj *obj, Section *osec, Section *sec);
extern void grow(Section *sec, int nbytes);
extern void merge(Segment *seg);
extern void debugsec(void);

/* globals */
extern char *libpaths[];
extern char *filename, *membname;
extern int sflag;
extern int xflag;
extern int Xflag;
extern int rflag;
extern int dflag;
extern int gflag;
extern char *output, *entry;
extern Obj *objhead;
extern Segment debug, text, rodata, data, bss;