From 7066bed8439cabda05cfe86dca003084fc664e18 Mon Sep 17 00:00:00 2001 From: Maschell Date: Sun, 10 Mar 2019 01:43:15 +0100 Subject: [PATCH] Only set CRC and FILEINFO sections to SHT_NULL --- src/main/java/de/mas/ghidra/wiiu/RPXUtils.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main/java/de/mas/ghidra/wiiu/RPXUtils.java b/src/main/java/de/mas/ghidra/wiiu/RPXUtils.java index 33d50ab..f73e532 100644 --- a/src/main/java/de/mas/ghidra/wiiu/RPXUtils.java +++ b/src/main/java/de/mas/ghidra/wiiu/RPXUtils.java @@ -113,8 +113,7 @@ public class RPXUtils { buffer.position((int) shdr_elf_offset); System.out.println("Write header " + String.format("%08X", shdr_elf_offset)); buffer.putInt(h.getName()); - if (h.getType() == SHT_RPL_CRCS || h.getType() == SHT_RPL_FILEINFO || h.getType() == SHT_RPL_EXPORTS - || h.getType() == SHT_RPL_IMPORTS) { + if (h.getType() == SHT_RPL_CRCS || h.getType() == SHT_RPL_FILEINFO) { buffer.putInt(ElfSectionHeaderConstants.SHT_NULL); } else { buffer.putInt(h.getType());