public byte type;
public byte binding;
public byte other;
+ public short shndx;
public SHeader sheader;
public final static int STT_FUNC = 2;
type = (byte)(info&0xf);
binding = (byte)(info>>4);
other = readByte();
- // FEATURE: This should point to some other entry or something
- readShort();
+ shndx = readShort();
}
}
private static String toHex(int n) { return "0x" + Long.toString(n & 0xffffffffL, 16); }
- public static void main(String[] args) throws IOException {
+ /*public static void main(String[] args) throws IOException {
ELF elf = new ELF(new Seekable.InputStream(new FileInputStream(args[0])));
System.out.println("Type: " + toHex(elf.header.type));
System.out.println("Machine: " + toHex(elf.header.machine));
} else {
System.out.println("Symbol table: None");
}
- }
+ }*/
}