diff lwlink/map.c @ 395:54499b799779

Q&D sanitization of symbols in map files and error messages in lwlink
author lost@l-w.ca
date Fri, 23 Jul 2010 16:40:51 -0600
parents 1c31e9005ff7
children
line wrap: on
line diff
--- a/lwlink/map.c	Fri Jul 23 16:23:54 2010 -0600
+++ b/lwlink/map.c	Fri Jul 23 16:40:51 2010 -0600
@@ -69,7 +69,7 @@
 	for (sn = 0; sn < nsects; sn++)
 	{
 		fprintf(of, "Section: %s (%s) load at %04X, length %04X\n",
-				sectlist[sn].ptr -> name,
+				sanitize_symbol(sectlist[sn].ptr -> name),
 				sectlist[sn].ptr -> file -> filename,
 				sectlist[sn].ptr -> loadaddress,
 				sectlist[sn].ptr -> codesize
@@ -107,7 +107,7 @@
 	
 	for (ce = slist; ce; ce = ce -> next)
 	{
-		fprintf(of, "Symbol: %s (%s) = %04X\n", ce -> name, ce -> fn, ce -> addr);
+		fprintf(of, "Symbol: %s (%s) = %04X\n", sanitize_symbol(ce -> name), ce -> fn, ce -> addr);
 	}
 
 	if (!std)