private void parseHeader(byte data[]) { this.p_type = this.object.elf32_wordToLong(data, 0); this.type = ElfProgramType.valueToProgramType(this.p_type); this.p_offset = this.object.elf32_wordToLong(data, 4); this.p_vaddr = this.object.elf32_wordToLong(data, 8); this.p_paddr = this.object.elf32_wordToLong(data, 12); this.p_filesz = this.object.elf32_wordToLong(data, 16); this.p_memsz = this.object.elf32_wordToLong(data, 20); this.p_flags = this.object.elf32_wordToLong(data, 24); interpretFlags(); this.p_align = this.object.elf32_wordToLong(data, 28); }
static { for (ElfProgramType f : ElfProgramType.values()) { ElfProgramType.longToElfProgramType.put(f.getValue(), f); } }