mirror of
https://github.com/Maschell/GhidraRPXLoader.git
synced 2024-11-14 04:15:09 +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