comparison lwlink/trunk/src/link.c @ 130:8349048d67b3

Fixed crash when entry symbol is not exported
author lost
date Sat, 24 Jan 2009 02:54:03 +0000
parents 269ef87192ad
children 5276565799bd
comparison
equal deleted inserted replaced
129:b9a3a3867eef 130:8349048d67b3
200 goto out; 200 goto out;
201 } 201 }
202 } 202 }
203 } 203 }
204 } 204 }
205 fprintf(stderr, "External symbol %s not found in %s:%s\n", sym, sect -> file -> filename, sect -> name); 205 if (sect)
206 {
207 fprintf(stderr, "External symbol %s not found in %s:%s\n", sym, sect -> file -> filename, sect -> name);
208 }
209 else
210 {
211 fprintf(stderr, "External symbol %s not found\n", sym);
212 }
206 exit(1); 213 exit(1);
207 } 214 }
208 fprintf(stderr, "Shouldn't ever get here!!!\n"); 215 fprintf(stderr, "Shouldn't ever get here!!!\n");
209 exit(88); 216 exit(88);
210 out: 217 out: