Rev 6443 | Rev 8154 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 6443 | Rev 6858 | ||
---|---|---|---|
Line 272... | Line 272... | ||
272 | for(si=me.code_sections;si;si=si->next) |
272 | for(si=me.code_sections;si;si=si->next) |
273 | fwrite(si->data,1,si->data_size,f); |
273 | fwrite(si->data,1,si->data_size,f); |
274 | for (si=me.data_sections;si;si=si->next) |
274 | for (si=me.data_sections;si;si=si->next) |
275 | fwrite(si->data,1,si->data_size,f); |
275 | fwrite(si->data,1,si->data_size,f); |
276 | for (si=me.bss_sections;si;si=si->next) |
276 | for (si=me.bss_sections;si;si=si->next) |
- | 277 | { |
|
- | 278 | if (si->data == NULL) |
|
- | 279 | { |
|
- | 280 | // printf("\nError! BSS data is NULL! size:%i",(int)si->data_size); |
|
- | 281 | si->data = calloc(si->data_size, 1); |
|
- | 282 | } |
|
277 | fwrite(si->data,1,si->data_size,f); |
283 | fwrite(si->data, 1, si->data_size, f); |
- | 284 | } |
|
278 | /* |
285 | /* |
279 | if (me.bss_sections) // Siemargl testin, what we lose |
286 | if (me.bss_sections) // Siemargl testin, what we lose |
280 | { |
287 | { |
281 | tcc_error_noabort("We lose .BSS section when linking KOS32 executable"); |
288 | tcc_error_noabort("We lose .BSS section when linking KOS32 executable"); |
282 | } |
289 | } |