diff lwlink/link.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/link.c	Fri Jul 23 16:23:54 2010 -0600
+++ b/lwlink/link.c	Fri Jul 23 16:40:51 2010 -0600
@@ -286,7 +286,7 @@
 		}
 		// not found
 		symerr = 1;
-		fprintf(stderr, "Local symbol %s not found in %s:%s\n", sym, sect -> file -> filename, sect -> name);
+		fprintf(stderr, "Local symbol %s not found in %s:%s\n", sanitize_symbol(sym), sect -> file -> filename, sect -> name);
 		goto outerr;
 	}
 	else
@@ -311,7 +311,7 @@
 		}
 		if (sect)
 		{
-			fprintf(stderr, "External symbol %s not found in %s:%s\n", sym, sect -> file -> filename, sect -> name);
+			fprintf(stderr, "External symbol %s not found in %s:%s\n", sanitize_symbol(sym), sect -> file -> filename, sect -> name);
 		}
 		else
 		{
@@ -414,7 +414,7 @@
 		s = resolve_sym(linkscript.execsym, 0, NULL);
 		if (!s)
 		{
-			fprintf(stderr, "Cannot resolve exec address '%s'\n", linkscript.execsym);
+			fprintf(stderr, "Cannot resolve exec address '%s'\n", sanitize_symbol(linkscript.execsym));
 			symerr = 1;
 		}
 	}