mirror of
https://github.com/cemu-project/GhidraRPXLoader.git
synced 2024-11-22 09:19:17 +01:00
Use proper constants
This commit is contained in:
parent
67786b9384
commit
721b0306a5
@ -31,6 +31,7 @@ import org.apache.commons.collections4.map.HashedMap;
|
|||||||
|
|
||||||
import generic.continues.RethrowContinuesFactory;
|
import generic.continues.RethrowContinuesFactory;
|
||||||
import ghidra.app.util.bin.ByteProvider;
|
import ghidra.app.util.bin.ByteProvider;
|
||||||
|
import ghidra.app.util.bin.format.elf.ElfConstants;
|
||||||
import ghidra.app.util.bin.format.elf.ElfException;
|
import ghidra.app.util.bin.format.elf.ElfException;
|
||||||
import ghidra.app.util.bin.format.elf.ElfHeader;
|
import ghidra.app.util.bin.format.elf.ElfHeader;
|
||||||
import ghidra.app.util.bin.format.elf.ElfSectionHeader;
|
import ghidra.app.util.bin.format.elf.ElfSectionHeader;
|
||||||
@ -210,7 +211,7 @@ public class RPXFileSystem implements GFileSystem {
|
|||||||
buffer.position(0);
|
buffer.position(0);
|
||||||
buffer.put(RPX_MAGIC);
|
buffer.put(RPX_MAGIC);
|
||||||
buffer.position(0x10);
|
buffer.position(0x10);
|
||||||
buffer.putShort((short) 0x02); // e.e_type());
|
buffer.putShort(ElfConstants.ET_EXEC); // e.e_type());
|
||||||
buffer.putShort(elfFile.e_machine());
|
buffer.putShort(elfFile.e_machine());
|
||||||
buffer.putInt(elfFile.e_version());
|
buffer.putInt(elfFile.e_version());
|
||||||
buffer.putInt((int) elfFile.e_entry());
|
buffer.putInt((int) elfFile.e_entry());
|
||||||
|
Loading…
Reference in New Issue
Block a user