Skip to main content
aboutsummaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorMatthew Khouzam2020-04-02 22:29:17 +0000
committerMatthew Khouzam2020-04-17 02:41:20 +0000
commitc70484d11e4b1fe1004644e5085b9613eaf1edaa (patch)
tree577517f9e37424bfd1163d94f4f7870ef3e8f79c /core
parentbcd1b5b71b5fb60c0d5f088c6c81de19560a5a4b (diff)
downloadorg.eclipse.cdt-c70484d11e4b1fe1004644e5085b9613eaf1edaa.tar.gz
org.eclipse.cdt-c70484d11e4b1fe1004644e5085b9613eaf1edaa.tar.xz
org.eclipse.cdt-c70484d11e4b1fe1004644e5085b9613eaf1edaa.zip
Bug 561788 - Convert fields into variables in Elf
The fields are not used outside of the loadSymbols section, and they are written before being read, so they should be safely inlineable. Change-Id: I68388227074d80ace283395b48c88c59700dd9da Signed-off-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Diffstat (limited to 'core')
-rw-r--r--core/org.eclipse.cdt.core/utils/org/eclipse/cdt/utils/elf/Elf.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/org.eclipse.cdt.core/utils/org/eclipse/cdt/utils/elf/Elf.java b/core/org.eclipse.cdt.core/utils/org/eclipse/cdt/utils/elf/Elf.java
index 89a60e1a269..a58f311b903 100644
--- a/core/org.eclipse.cdt.core/utils/org/eclipse/cdt/utils/elf/Elf.java
+++ b/core/org.eclipse.cdt.core/utils/org/eclipse/cdt/utils/elf/Elf.java
@@ -53,10 +53,8 @@ public class Elf {
private Symbol[] symbols;
/** .symtab section */
private Symbol[] symbolsTable;
- private Section symbolsTableSection;
/** .dynSym section */
private Symbol[] dynamicSymbols;
- private Section dynamicSymbolSection;
private boolean areSectionsMapped; // Have sections been mapped? Used to clean up properly in Elf.Dispose.
protected String EMPTY_STRING = ""; //$NON-NLS-1$
@@ -1125,6 +1123,8 @@ public class Elf {
}
public void loadSymbols() throws IOException {
+ Section symbolsTableSection = null;
+ Section dynamicSymbolSection = null;
if (symbols == null) {
Section section[] = getSections(Section.SHT_SYMTAB);
if (section.length > 0) {

Back to the top