diff lwlink/readfiles.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 606123758641
children 221b5f58d8ad
line wrap: on
line diff
--- a/lwlink/readfiles.c	Sat Aug 11 15:18:58 2012 -0600
+++ b/lwlink/readfiles.c	Sat Aug 11 23:29:57 2012 -0600
@@ -198,6 +198,8 @@
 		s -> incompletes = NULL;
 		s -> processed = 0;
 		s -> file = fn;
+		s -> afterbytes = NULL;
+		s -> aftersize = 0;
 		
 		// read flags
 		while (CURBYTE())