Subversion Repositories Kolibri OS

Rev

Rev 6429 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 6429 Rev 6460
Line 874... Line 874...
874
    if (!f) {
874
    if (!f) {
875
	tcc_error("Unable to open .out file for input");
875
	tcc_error("Unable to open .out file for input");
876
    }
876
    }
Line 877... Line 877...
877
 
877
 
878
    if (fread(&file_hdr, FILHSZ, 1, f) != 1)
878
    if (fread(&file_hdr, FILHSZ, 1, f) != 1)
Line 879... Line 879...
879
	tcc_error("error reading .out file for input");
879
	tcc_error("error 1 reading .out file for input");
880
 
880
 
Line 881... Line 881...
881
    if (fread(&o_filehdr, sizeof(o_filehdr), 1, f) != 1)
881
    if (fread(&o_filehdr, sizeof(o_filehdr), 1, f) != 1)
Line 882... Line 882...
882
	tcc_error("error reading .out file for input");
882
	tcc_error("error 2 reading .out file for input");
883
 
883
 
Line 884... Line 884...
884
    // first read the string table
884
    // first read the string table
885
 
885
 
Line 886... Line 886...
886
    if (fseek(f, file_hdr.f_symptr + file_hdr.f_nsyms * SYMESZ, SEEK_SET))
886
    if (fseek(f, file_hdr.f_symptr + file_hdr.f_nsyms * SYMESZ, SEEK_SET))
Line 887... Line 887...
887
	tcc_error("error reading .out file for input");
887
	tcc_error("error 3 reading .out file for input");
888
 
888
 
Line 889... Line 889...
889
    if (fread(&str_size, sizeof(int), 1, f) != 1)
889
    if (fread(&str_size, sizeof(int), 1, f) != 1)
Line 890... Line 890...
890
	tcc_error("error reading .out file for input");
890
	tcc_error("error 4 reading .out file for input");
Line 891... Line 891...
891
 
891
 
892
 
892
 
Line 893... Line 893...
893
    Coff_str_table = (char *) tcc_malloc(str_size);
893
    Coff_str_table = (char *) tcc_malloc(str_size);
894
 
894
 
895
    if (fread(Coff_str_table, str_size - 4, 1, f) != 1)
895
    if (fread(Coff_str_table, str_size - 4, 1, f) != 1)
Line 896... Line 896...
896
	tcc_error("error reading .out file for input");
896
	tcc_error("error 5 reading .out file for input");
897
 
897
 
898
    // read/process all the symbols
898
    // read/process all the symbols
899
 
899