mirror of
https://github.com/cemu-project/GhidraRPXLoader.git
synced 2024-11-25 02:26:57 +01:00
Only set CRC and FILEINFO sections to SHT_NULL
This commit is contained in:
parent
30dd840300
commit
7066bed843
@ -113,8 +113,7 @@ public class RPXUtils {
|
|||||||
buffer.position((int) shdr_elf_offset);
|
buffer.position((int) shdr_elf_offset);
|
||||||
System.out.println("Write header " + String.format("%08X", shdr_elf_offset));
|
System.out.println("Write header " + String.format("%08X", shdr_elf_offset));
|
||||||
buffer.putInt(h.getName());
|
buffer.putInt(h.getName());
|
||||||
if (h.getType() == SHT_RPL_CRCS || h.getType() == SHT_RPL_FILEINFO || h.getType() == SHT_RPL_EXPORTS
|
if (h.getType() == SHT_RPL_CRCS || h.getType() == SHT_RPL_FILEINFO) {
|
||||||
|| h.getType() == SHT_RPL_IMPORTS) {
|
|
||||||
buffer.putInt(ElfSectionHeaderConstants.SHT_NULL);
|
buffer.putInt(ElfSectionHeaderConstants.SHT_NULL);
|
||||||
} else {
|
} else {
|
||||||
buffer.putInt(h.getType());
|
buffer.putInt(h.getType());
|
||||||
|
Loading…
Reference in New Issue
Block a user