mirror of
https://github.com/cemu-project/GhidraRPXLoader.git
synced 2024-11-24 18:26:51 +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);
|
||||
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());
|
||||
|
Loading…
Reference in New Issue
Block a user