From 721b0306a514e81cd5890e61914edffcf3b945bb Mon Sep 17 00:00:00 2001 From: Maschell Date: Fri, 8 Mar 2019 18:03:29 +0100 Subject: [PATCH] Use proper constants --- src/main/java/rpx/RPXFileSystem.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/rpx/RPXFileSystem.java b/src/main/java/rpx/RPXFileSystem.java index 398d89a..f99cc01 100644 --- a/src/main/java/rpx/RPXFileSystem.java +++ b/src/main/java/rpx/RPXFileSystem.java @@ -31,6 +31,7 @@ import org.apache.commons.collections4.map.HashedMap; import generic.continues.RethrowContinuesFactory; 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.ElfHeader; import ghidra.app.util.bin.format.elf.ElfSectionHeader; @@ -210,7 +211,7 @@ public class RPXFileSystem implements GFileSystem { buffer.position(0); buffer.put(RPX_MAGIC); buffer.position(0x10); - buffer.putShort((short) 0x02); // e.e_type()); + buffer.putShort(ElfConstants.ET_EXEC); // e.e_type()); buffer.putShort(elfFile.e_machine()); buffer.putInt(elfFile.e_version()); buffer.putInt((int) elfFile.e_entry());