Change executable section flags to please objiff

objdiff assumes that all symbols in executable memory sections are code,
which led to misbehaviour due to .rdata and .data being marked as
executable in JSRF.  We now set these sections to non-executable in
Ghidra to work around this.
This commit is contained in:
KeybadeBlox 2025-12-21 19:30:37 -05:00
parent 70cc4ca688
commit 8eda56dcdf
3 changed files with 17 additions and 6 deletions

View file

@ -14,8 +14,11 @@
"source_path": "src/JSRF/Jet2.cpp"
},
"symbol_mappings": {
"_main_handler": "$L522",
"_main_handler_unwind1": "$L514"
"[.rdata-0]": "[.xdata$x-0]",
"_main_funcinfo": "$T519",
"_main_handler": "$L523",
"_main_handler_unwind1": "$L515",
"_main_unwindmap": "$T525"
}
}
]