scc

simple c99 compiler
git clone git://git.simple-cc.org/scc
Log | Files | Refs | Submodules | README | LICENSE

ld.h (1040B)


      1 /* passes */
      2 extern void pass1(int argc, char *argv[]);
      3 extern void pass2(int argc, char *argv[]);
      4 extern void pass3(int argc, char *argv[]);
      5 extern void pass4(int argc, char *argv[]);
      6 extern void pass5(int argc, char *argv[]);
      7 
      8 /* main.c */
      9 extern void error(char *fmt, ...);
     10 extern char *nextarg(char **argp, char ***argv);
     11 
     12 /* symbol.c */
     13 extern int hasref(char *name);
     14 extern Symbol *lookupsym(char *name);
     15 extern int moreundef(void);
     16 extern void listundef(void);
     17 extern Symbol *define(Symbol *osym, Obj *obj);
     18 extern void debugsym(void);
     19 
     20 /* section.c */
     21 extern Section *lookupsec(char *name);
     22 extern void copy(Obj *obj, Section *osec, Section *sec);
     23 extern void grow(Section *sec, int nbytes);
     24 extern void merge(Segment *seg);
     25 extern void debugsec(void);
     26 
     27 /* globals */
     28 extern char *libpaths[];
     29 extern char *filename, *membname;
     30 extern int sflag;
     31 extern int xflag;
     32 extern int Xflag;
     33 extern int rflag;
     34 extern int dflag;
     35 extern int gflag;
     36 extern char *output, *entry;
     37 extern Obj *objhead;
     38 extern Segment debug, text, rodata, data, bss;