1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-02 14:45:25 +02:00

Remove the dispose and add the ImageBase in value of the symbols.

This commit is contained in:
Alain Magloire 2003-10-19 05:29:55 +00:00
parent 43dc0a5a21
commit f89eee8439

View file

@ -499,7 +499,6 @@ public class PE {
int size = memory.getInt();
dataDirectories[i] = new ImageDataDirectory(rva, size);
}
dispose();
}
return dataDirectories;
}
@ -515,7 +514,6 @@ public class PE {
for (int i = 0; i < scnhdrs.length; i++, offset += SectionHeader.SCNHSZ) {
scnhdrs[i] = new SectionHeader(accessFile, offset);
}
dispose();
}
return scnhdrs;
}
@ -527,8 +525,11 @@ public class PE {
symbolTable = new Symbol[fileHeader.f_nsyms];
for (int i = 0; i < symbolTable.length; i++, offset += Symbol.SYMSZ) {
symbolTable[i] = new Symbol(accessFile, offset);
NTOptionalHeader ntHeader = getNTOptionalHeader();
// FIXME: What is this again ?
if (ntHeader != null)
symbolTable[i].n_value += ntHeader.ImageBase + ntHeader.FileAlignment;
}
dispose();
}
return symbolTable;
}
@ -551,7 +552,6 @@ public class PE {
} else {
stringTable = new byte[0];
}
dispose();
} else {
stringTable = new byte[0];
}