Mercurial > hg-old > index.cgi
diff lwlink/trunk/src/lwlink.h @ 119:8bc00221ae89
section order and address resolution done
author | lost |
---|---|
date | Wed, 21 Jan 2009 05:45:25 +0000 |
parents | d450943305a7 |
children | 36ce328df3c3 |
line wrap: on
line diff
--- a/lwlink/trunk/src/lwlink.h Wed Jan 21 05:13:36 2009 +0000 +++ b/lwlink/trunk/src/lwlink.h Wed Jan 21 05:45:25 2009 +0000 @@ -46,6 +46,8 @@ reloc_t *next; // ptr to next relocation }; +typedef struct fileinfo_s fileinfo_t; + #define SECTION_BSS 1 typedef struct { @@ -54,14 +56,17 @@ int codesize; // size of the code unsigned char *code; // pointer to the code int loadaddress; // the actual load address of the section - + int processed; // was the section processed yet? + symtab_t *localsyms; // local symbol table symtab_t *exportedsyms; // exported symbols table reloc_t *incompletes; // table of incomplete references + + fileinfo_t *file; // the file we are in } section_t; -typedef struct +struct fileinfo_s { char *filename; unsigned char *filedata; @@ -69,7 +74,7 @@ section_t *sections; int nsections; -} fileinfo_t; +};