Unified · Split
| @@ -84,6 +84,8 @@ int tcc_output_coff(TCCState *s1, FILE *f) · 83 unmodified lines | |||
| 84 | Section *stext, *sdata, *sbss; | 84 | Section *stext, *sdata, *sbss; |
| 85 | int i, NSectionsToOutput = 0; | 85 | int i, NSectionsToOutput = 0; |
| 86 | 86 | ||
| 87 | Coff_str_table = pCoff_str_table = NULL; | ||
| 88 | |||
| 87 | stext = FindSection(s1, ".text"); | 89 | stext = FindSection(s1, ".text"); |
| 88 | sdata = FindSection(s1, ".data"); | 90 | sdata = FindSection(s1, ".data"); |
| 89 | sbss = FindSection(s1, ".bss"); | 91 | sbss = FindSection(s1, ".bss"); |
| @@ -509,7 +509,9 @@ static void relocate_section(TCCState *s1, Section *s) · 508 unmodified lines | |||
| 509 | int type, sym_index; | 509 | int type, sym_index; |
| 510 | unsigned char *ptr; | 510 | unsigned char *ptr; |
| 511 | unsigned long val, addr; | 511 | unsigned long val, addr; |
| 512 | #if defined TCC_TARGET_I386 || defined TCC_TARGET_X86_64 | ||
| 512 | int esym_index; | 513 | int esym_index; |
| 514 | #endif | ||
| 513 | 515 | ||
| 514 | sr = s->reloc; | 516 | sr = s->reloc; |
| 515 | rel_end = (ElfW_Rel *)(sr->data + sr->data_offset); | 517 | rel_end = (ElfW_Rel *)(sr->data + sr->data_offset); |