Mercurial > hg-old > index.cgi
comparison 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 |
comparison
equal
deleted
inserted
replaced
394:a2f52e97b454 | 395:54499b799779 |
---|---|
67 | 67 |
68 // display section list | 68 // display section list |
69 for (sn = 0; sn < nsects; sn++) | 69 for (sn = 0; sn < nsects; sn++) |
70 { | 70 { |
71 fprintf(of, "Section: %s (%s) load at %04X, length %04X\n", | 71 fprintf(of, "Section: %s (%s) load at %04X, length %04X\n", |
72 sectlist[sn].ptr -> name, | 72 sanitize_symbol(sectlist[sn].ptr -> name), |
73 sectlist[sn].ptr -> file -> filename, | 73 sectlist[sn].ptr -> file -> filename, |
74 sectlist[sn].ptr -> loadaddress, | 74 sectlist[sn].ptr -> loadaddress, |
75 sectlist[sn].ptr -> codesize | 75 sectlist[sn].ptr -> codesize |
76 ); | 76 ); |
77 } | 77 } |
105 } | 105 } |
106 } | 106 } |
107 | 107 |
108 for (ce = slist; ce; ce = ce -> next) | 108 for (ce = slist; ce; ce = ce -> next) |
109 { | 109 { |
110 fprintf(of, "Symbol: %s (%s) = %04X\n", ce -> name, ce -> fn, ce -> addr); | 110 fprintf(of, "Symbol: %s (%s) = %04X\n", sanitize_symbol(ce -> name), ce -> fn, ce -> addr); |
111 } | 111 } |
112 | 112 |
113 if (!std) | 113 if (!std) |
114 fclose(of); | 114 fclose(of); |
115 } | 115 } |