Homebrew How can I slice my .code in sections ?

Mrrraou

Well-Known Member
OP
Member
Joined
Oct 17, 2015
Messages
1,873
Trophies
0
XP
2,374
Country
France
I want to slice a .code from a ExeFS and I have the exheader. I tried to read myself the values with an hex editor (with the help of the Citra source code) to get size and location of sections. But it seems that the values I retrieved are incorrect. Would someone please help me with that ?

EDIT: Structure of the NCCH Extended Header (Exheader): http://3dbrew.org/wiki/Exheader
 
Last edited by Mrrraou,

VegaRoXas

Well-Known Member
Member
Joined
Mar 29, 2015
Messages
290
Trophies
0
XP
378
Country
Gambia, The
Your tool is about editing romfs/exefs, but I'm talking here about the .code located in the exefs. ctrtool can't do that (as far as I know).
Well you can extract the exefs to get the icon, banner, logo and the code!
You can use ctrtool -t exefs --exefsdir=exefs --decompresscode yourexefs.bin.
If you don't feel like doing this, use my tool. It just does that for you lol
 

Mrrraou

Well-Known Member
OP
Member
Joined
Oct 17, 2015
Messages
1,873
Trophies
0
XP
2,374
Country
France
Well you can extract the exefs to get the icon, banner, logo and the code!
You can use ctrtool -t exefs --exefsdir=exefs --decompresscode yourexefs.bin.
If you don't feel like doing this, use my tool. It just does that for you lol
I have the .code file. I just want to slice it in sections, to get the .text, the .data and the .rodata.
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • No one is chatting at the moment.
    Xdqwerty @ Xdqwerty: I hate myself