Mercurial > hg-old > index.cgi
diff src/lwlink.h @ 299:460d96987670
parse linking scripts
author | lost |
---|---|
date | Wed, 21 Jan 2009 04:54:32 +0000 |
parents | 96a35a4245f3 |
children | 48945dac8178 |
line wrap: on
line diff
--- a/src/lwlink.h Wed Jan 21 03:15:49 2009 +0000 +++ b/src/lwlink.h Wed Jan 21 04:54:32 2009 +0000 @@ -80,6 +80,7 @@ extern char *outfile; extern int ninputfiles; extern fileinfo_t **inputfiles; +extern char *scriptfile; #define __lwlink_E__ extern #else @@ -89,4 +90,24 @@ __lwlink_E__ void add_input_file(char *fn); #undef __lwlink_E__ + +struct scriptline_s +{ + char *sectname; // name of section, NULL for wildcard + int loadat; // address to load at (or -1) + int noflags; // flags to NOT have + int yesflags; // flags to HAVE +}; + +typedef struct +{ + int nlines; // number of lines in the script + struct scriptline_s *lines; // the parsed script lines (section) + int padsize; // the size to pad to, -1 for none +} linkscript_t; + +#ifndef __script_c_seen__ +extern linkscript_t linkscript; +#endif + #endif //__lwlink_h_seen__