diff lwlink/main.c @ 236:ce1fdc8d6568

Added ability to add padding after a section when linking. Added the ability for lwlink to automatically append padding bytes to the end of a section (once the section instances are merged). This behaviour is controlled by the link script. See the updated documentation for more information.
author William Astle <lost@l-w.ca>
date Sat, 11 Aug 2012 23:29:57 -0600
parents d389adbcc4ab
children 55c1f9a321e9
line wrap: on
line diff
--- a/lwlink/main.c	Sat Aug 11 15:18:58 2012 -0600
+++ b/lwlink/main.c	Sat Aug 11 23:29:57 2012 -0600
@@ -167,6 +167,7 @@
 extern void resolve_sections(void);
 extern void generate_symbols(void);
 extern void resolve_references(void);
+extern void resolve_padding(void);
 extern void do_output(void);
 extern void display_map(void);
 
@@ -203,6 +204,9 @@
 	
 	// resolve incomplete references
 	resolve_references();
+
+	// resolve section padding bits
+	resolve_padding();
 	
 	// do the actual output
 	do_output();