public static Oat getOat(Elf e) throws IOException { DataReader r = e.getReader(); Elf.Elf_Shdr sec = e.getSectionByName(Oat.SECTION_RODATA); if (sec != null) { r.seek(sec.getOffset()); return new Oat(r, true); } throw new IOException("oat not found"); }