comparison lwasm/section.c @ 412:35a0b086bf4a

Added dummy .bank pseudo and fixed segfault in output for object target (on imported symbol)
author lost@l-w.ca
date Mon, 09 Aug 2010 00:37:46 -0600
parents a741d2e4869f
children
comparison
equal deleted inserted replaced
411:cac204676434 412:35a0b086bf4a
51 l -> len = 0; 51 l -> len = 0;
52 52
53 if (as -> csect) 53 if (as -> csect)
54 { 54 {
55 lw_expr_destroy(as -> csect -> offset); 55 lw_expr_destroy(as -> csect -> offset);
56 as -> csect -> offset = l -> addr; 56 as -> csect -> offset = lw_expr_copy(l -> addr);
57 as -> csect = NULL; 57 as -> csect = NULL;
58 } 58 }
59 59
60 for (p2 = *p; *p2 && *p2 != ',' && !isspace(*p2); p2++) 60 for (p2 = *p; *p2 && *p2 != ',' && !isspace(*p2); p2++)
61 /* do nothing */ ; 61 /* do nothing */ ;