Skip to content
Snippets Groups Projects
Commit 05a6f1f6 authored by Lioncash's avatar Lioncash
Browse files

service/ldr: Amend layout of the NRO header

The first word is just a padding byte, it's not an actual entry
instruction. Also renames the rest of the entries according to
SwitchBrew.
parent 817fb18e
No related branches found
No related tags found
No related merge requests found
......@@ -414,13 +414,13 @@ private:
using SHA256Hash = std::array<u8, 0x20>;
struct NROHeader {
u32_le entrypoint_insn;
INSERT_PADDING_WORDS(1);
u32_le mod_offset;
INSERT_PADDING_WORDS(2);
u32_le magic;
INSERT_PADDING_WORDS(1);
u32_le version;
u32_le nro_size;
INSERT_PADDING_WORDS(1);
u32_le flags;
u32_le text_offset;
u32_le text_size;
u32_le ro_offset;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment