Subversion Repositories Kolibri OS

Rev

Rev 6858 | Rev 8155 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 6858 Rev 8154
Line 271... Line 271...
271
	meos_section_info* si;
271
	meos_section_info* si;
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
	if (!s1->nobss)
-
 
277
	{
276
	for (si=me.bss_sections;si;si=si->next)
278
		for (si=me.bss_sections;si;si=si->next)
277
	{
279
		{
278
    	if (si->data == NULL)
280
	    	if (si->data == NULL)
279
		{
281
			{
280
//         	printf("\nError! BSS data is NULL! size:%i",(int)si->data_size);
282
	//         	printf("\nError! BSS data is NULL! size:%i",(int)si->data_size);
281
         	si->data = calloc(si->data_size, 1);
283
	         	si->data = calloc(si->data_size, 1);
282
      	}
284
	      	}
283
		fwrite(si->data, 1, si->data_size, f);
285
			fwrite(si->data, 1, si->data_size, f);
284
	}
286
		}
-
 
287
	}
285
/*
288
/*
286
    if (me.bss_sections) // Siemargl testin, what we lose
289
    if (me.bss_sections) // Siemargl testin, what we lose
287
    {
290
    {
288
        tcc_error_noabort("We lose .BSS section when linking KOS32 executable");
291
        tcc_error_noabort("We lose .BSS section when linking KOS32 executable");
289
    }
292
    }