Adubbz / Ghidra-Switch-Loader

Nintendo Switch loader for Ghidra
ISC License
285 stars 43 forks source link

NSO header missing from tree/listing #38

Closed GGLinnk closed 1 year ago

GGLinnk commented 1 year ago

I just noticed that when loading an NSO/exefs the loader deletes everything before the "MOD0" magik. That means the NSO header.

Is this a desired behavior? I find this strange. I haven't seen this behavior on other binary formats.

If this is desired. Can I have a little explanation as to why it has to be done this way?

I would have loved to not create an issue about it but discussion is closed.

masagrator commented 1 year ago

Yes. NSO header is never loaded to RAM as part of module, so loader follows official HOS behavior.

Adubbz commented 1 year ago

Yes, @masagrator is correct. This behaviour is also intended to be consistent with the equivalent IDA loader, minimising any confusion in transitioning between the two.