diff lwlink/trunk/src/link.c @ 126:269ef87192ad

Fixed stupid logic problem reading input files
author lost
date Fri, 23 Jan 2009 05:10:33 +0000
parents 4ac96c697ef0
children 8349048d67b3
line wrap: on
line diff
--- a/lwlink/trunk/src/link.c	Fri Jan 23 04:53:01 2009 +0000
+++ b/lwlink/trunk/src/link.c	Fri Jan 23 05:10:33 2009 +0000
@@ -44,6 +44,7 @@
 	
 	for (ln = 0; ln < linkscript.nlines; ln++)
 	{
+//	printf("Linker script line %d: '%s', %04X, %d, %d\n", ln, linkscript.lines[ln].sectname, linkscript.lines[ln].loadat, linkscript.lines[ln].yesflags, linkscript.lines[ln].noflags);
 		if (linkscript.lines[ln].sectname)
 		{
 			int f = 0;
@@ -54,6 +55,7 @@
 			{
 				for (sn = 0; sn < inputfiles[fn] -> nsections; sn++)
 				{
+//				printf("  Considering %s:%s\n", inputfiles[fn]->filename, inputfiles[fn]->sections[sn].name);
 					if (!strcmp(linkscript.lines[ln].sectname, inputfiles[fn] -> sections[sn].name))
 					{
 						// we have a match