2003/11/16 09:03:16
[org.ibex.core.git] / src / org / xwt / mips / ELF.java
index 12821f0..2a9b611 100644 (file)
@@ -143,8 +143,11 @@ public class ELF {
     }
     
     public ELF(Object img) throws IOException, ELFException {
-        if (img instanceof String) image = new MyRandomAccessFile((String)img,"r");
-        image = img;
+        if (img instanceof String) {
+            image = fd = new MyRandomAccessFile((String)img, "r");
+        } else {
+            image = img;
+        }
         seek(0);
         header = new ELFHeader();
         pheaders = new PHeader[header.phnum];