| @@ -1320,7 +1320,7 @@ static void add_init_array_defines(TCCState *s1, const char *section_name) · 1319 unmodified lines |
| 1320 | #ifndef TCC_TARGET_PE | 1320 | #ifndef TCC_TARGET_PE |
| 1321 | static int tcc_add_support(TCCState *s1, const char *filename) | 1321 | static int tcc_add_support(TCCState *s1, const char *filename) |
| 1322 | { | 1322 | { |
| 1323 | if(!filename || strlen(filename)==0) return 0; | 1323 | if (!filename || strlen(filename)==0) return 0; |
| 1324 | char buf[1024]; | 1324 | char buf[1024]; |
| 1325 | snprintf(buf, sizeof(buf), "%s/%s", s1->tcc_lib_path, filename); | 1325 | snprintf(buf, sizeof(buf), "%s/%s", s1->tcc_lib_path, filename); |
| 1326 | return tcc_add_file(s1, buf); | 1326 | return tcc_add_file(s1, buf); |
| @@ -2348,7 +2348,7 @@ static void tidy_section_headers(TCCState *s1, int *sec_order) · 1021 unmodified lines |
| 2348 | for_each_elem(symtab_section, 1, sym, ElfW(Sym)) | 2348 | for_each_elem(symtab_section, 1, sym, ElfW(Sym)) |
| 2349 | if (sym->st_shndx != SHN_UNDEF && sym->st_shndx < SHN_LORESERVE) | 2349 | if (sym->st_shndx != SHN_UNDEF && sym->st_shndx < SHN_LORESERVE) |
| 2350 | sym->st_shndx = backmap[sym->st_shndx]; | 2350 | sym->st_shndx = backmap[sym->st_shndx]; |
| 2351 | if( !s1->static_link ) { | 2351 | if ( !s1->static_link ) { |
| 2352 | for_each_elem(s1->dynsym, 1, sym, ElfW(Sym)) | 2352 | for_each_elem(s1->dynsym, 1, sym, ElfW(Sym)) |
| 2353 | if (sym->st_shndx != SHN_UNDEF && sym->st_shndx < SHN_LORESERVE) | 2353 | if (sym->st_shndx != SHN_UNDEF && sym->st_shndx < SHN_LORESERVE) |
| 2354 | sym->st_shndx = backmap[sym->st_shndx]; | 2354 | sym->st_shndx = backmap[sym->st_shndx]; |