diff src/main.c @ 301:376cc55361c7

section order and address resolution done
author lost
date Wed, 21 Jan 2009 05:45:25 +0000
parents 48945dac8178
children 13272197d278
line wrap: on
line diff
--- a/src/main.c	Wed Jan 21 05:13:36 2009 +0000
+++ b/src/main.c	Wed Jan 21 05:45:25 2009 +0000
@@ -121,6 +121,7 @@
 
 extern void read_files(void);
 extern void setup_script(void);
+extern void resolve_sections(void);
 
 // main function; parse command line, set up assembler state, and run the
 // assembler on the first file
@@ -133,10 +134,14 @@
 		exit(1);
 	}
 
+	// handle the linker script
 	setup_script();
 
 	// read the input files
 	read_files();
 	
+	// resolve section bases and section order
+	resolve_sections();
+	
 	exit(0);
 }