Commit 2331d91e775db285bdf0db4e68a949e67167b27b
1 parent
4259e1a5
moved declarations
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3539 c046a42c-6fe2-441c-8c8c-71466251a162
Showing
1 changed file
with
2 additions
and
2 deletions
dyngen.c
... | ... | @@ -701,6 +701,8 @@ int load_object(const char *filename) |
701 | 701 | uint32_t *n_strtab; |
702 | 702 | EXE_SYM *sym; |
703 | 703 | EXE_RELOC *rel; |
704 | + const char *p; | |
705 | + int aux_size, j; | |
704 | 706 | |
705 | 707 | fd = open(filename, O_RDONLY |
706 | 708 | #ifdef _WIN32 |
... | ... | @@ -727,7 +729,6 @@ int load_object(const char *filename) |
727 | 729 | sdata = malloc(sizeof(void *) * fhdr.f_nscns); |
728 | 730 | memset(sdata, 0, sizeof(void *) * fhdr.f_nscns); |
729 | 731 | |
730 | - const char *p; | |
731 | 732 | for(i = 0;i < fhdr.f_nscns; i++) { |
732 | 733 | sec = &shdr[i]; |
733 | 734 | if (!strstart(sec->s_name, ".bss", &p)) |
... | ... | @@ -771,7 +772,6 @@ int load_object(const char *filename) |
771 | 772 | /* set coff symbol */ |
772 | 773 | symtab = malloc(sizeof(struct coff_sym) * nb_syms); |
773 | 774 | |
774 | - int aux_size, j; | |
775 | 775 | for (i = 0, ext_sym = coff_symtab, sym = symtab; i < nb_syms; i++, ext_sym++, sym++) { |
776 | 776 | memset(sym, 0, sizeof(*sym)); |
777 | 777 | sym->st_syment = ext_sym; | ... | ... |