diff options
| author | grischka <grischka> | 2009-05-11 18:45:44 +0200 |
|---|---|---|
| committer | grischka <grischka> | 2009-05-11 18:45:44 +0200 |
| commit | f9181416f604c1c0715fc538316948a9f957a3c3 (patch) | |
| tree | 44b516fd9c79bd470322480540feda94acb2c6d9 /tccpe.c | |
| parent | 5c6509578e78db8978b19ab81c4f26398f13c82d (diff) | |
| download | tinycc-f9181416f604c1c0715fc538316948a9f957a3c3.tar.gz tinycc-f9181416f604c1c0715fc538316948a9f957a3c3.tar.bz2 | |
move some global variables into TCCState
Diffstat (limited to 'tccpe.c')
| -rw-r--r-- | tccpe.c | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -577,7 +577,7 @@ ST_FN int pe_write(struct pe_info *pe) file_offset = pe->sizeofheaders; pe_fpad(op, file_offset); - if (2 == verbose) + if (2 == pe->s1->verbose) printf("-------------------------------" "\n virt file size section" "\n"); @@ -588,7 +588,7 @@ ST_FN int pe_write(struct pe_info *pe) unsigned long size = si->sh_size; IMAGE_SECTION_HEADER *psh = &si->ish; - if (2 == verbose) + if (2 == pe->s1->verbose) printf("%6lx %6lx %6lx %s\n", addr, file_offset, size, sh_name); @@ -662,9 +662,9 @@ ST_FN int pe_write(struct pe_info *pe) fwrite(&pe->sec_info[i].ish, 1, sizeof(IMAGE_SECTION_HEADER), op); fclose (op); - if (2 == verbose) + if (2 == pe->s1->verbose) printf("-------------------------------\n"); - if (verbose) + if (pe->s1->verbose) printf("<- %s (%lu bytes)\n", pe->filename, file_offset); return 0; @@ -859,7 +859,7 @@ ST_FN void pe_build_exports(struct pe_info *pe) error_noabort("could not create '%s': %s", buf, strerror(errno)); } else { fprintf(op, "LIBRARY %s\n\nEXPORTS\n", dllname); - if (verbose) + if (pe->s1->verbose) printf("<- %s (%d symbols)\n", buf, sym_count); } #endif @@ -1065,7 +1065,7 @@ ST_FN int pe_assign_addresses (struct pe_info *pe) flags & SHF_EXECINSTR ? "exec" : "" ); } - verbose = 2; + pe->s1->verbose = 2; #endif tcc_free(section_order); |
