diff src/lwlink.h @ 301:376cc55361c7

section order and address resolution done
author lost
date Wed, 21 Jan 2009 05:45:25 +0000
parents 48945dac8178
children eff969272fb9
line wrap: on
line diff
--- a/src/lwlink.h	Wed Jan 21 05:13:36 2009 +0000
+++ b/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;
+};