--- a/bintools/elftools/getexports/geninf.cpp Thu Jun 10 13:50:24 2010 +0800
+++ b/bintools/elftools/getexports/geninf.cpp Mon Jul 26 11:04:29 2010 +0800
@@ -159,8 +159,8 @@
Elf32_Sym * symtab = 0;
int nSyms = 0;
char * strtab = 0;
- int i=0;
-
+ int i = 0;
+
for (i = 0; (i < shnum); i++) {
if (shdr[i].sh_type == SHT_SYMTAB) {
symtab = ELFADDR(Elf32_Sym, eh, shdr[i].sh_offset);
@@ -283,7 +283,6 @@
int shoff = eh->e_shoff; // offset of section header table
if (shoff) {
Elf32_Shdr * shdr = ELFADDR(Elf32_Shdr, eh, shoff);
- int i=0;
int shnum = eh->e_shnum; // number of section headers
@@ -307,7 +306,8 @@
Elf32_Sym * symtab = 0;
int nSyms = 0;
char * strtab = 0;
-
+ int i = 0;
+
for (i = 0; (i < shnum); i++) {
if (shdr[i].sh_type == SHT_DYNSYM) {
symtab = ELFADDR(Elf32_Sym, eh, shdr[i].sh_offset);
@@ -350,7 +350,7 @@
int shstrndx = eh->e_shstrndx;
char *aSHdrStrTab = ELFADDR(char, eh, shdr[shstrndx].sh_offset);
- int i=0;
+ int i;
Elf32_Verdef *aVerDef = 0;
char *aStringTab = 0;
for(i = 0; i < shnum; i++) {