diff options
author | bellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162> | 2007-11-07 16:07:32 +0000 |
---|---|---|
committer | bellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162> | 2007-11-07 16:07:32 +0000 |
commit | 2331d91e775db285bdf0db4e68a949e67167b27b (patch) | |
tree | ce39612a4ba747cd6375e14257e80c6faddfc9cd /dyngen.c | |
parent | 4259e1a5663830523c842b28462622705a260144 (diff) |
moved declarations
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3539 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'dyngen.c')
-rw-r--r-- | dyngen.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -701,6 +701,8 @@ int load_object(const char *filename) uint32_t *n_strtab; EXE_SYM *sym; EXE_RELOC *rel; + const char *p; + int aux_size, j; fd = open(filename, O_RDONLY #ifdef _WIN32 @@ -727,7 +729,6 @@ int load_object(const char *filename) sdata = malloc(sizeof(void *) * fhdr.f_nscns); memset(sdata, 0, sizeof(void *) * fhdr.f_nscns); - const char *p; for(i = 0;i < fhdr.f_nscns; i++) { sec = &shdr[i]; if (!strstart(sec->s_name, ".bss", &p)) @@ -771,7 +772,6 @@ int load_object(const char *filename) /* set coff symbol */ symtab = malloc(sizeof(struct coff_sym) * nb_syms); - int aux_size, j; for (i = 0, ext_sym = coff_symtab, sym = symtab; i < nb_syms; i++, ext_sym++, sym++) { memset(sym, 0, sizeof(*sym)); sym->st_syment = ext_sym; |