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
  • Psionic Roshambo @ Psionic Roshambo:
    Yeah I'm sure at minimum the starter was fried
  • Psionic Roshambo @ Psionic Roshambo:
    Alternator and battery
  • BigOnYa @ BigOnYa:
    Prob alot of fried parts. It was still smoking when I left.
  • K3Nv2 @ K3Nv2:
    I would've said show me how it rides
  • Psionic Roshambo @ Psionic Roshambo:
    I always wanted one of those Smart Cars with a Hyabusa motor in it.
  • K3Nv2 @ K3Nv2:
    I'm getting sick and tired of cheap ass baking pans now
  • BigOnYa @ BigOnYa:
    I think it be cool to have one that would fit in my pickup truck bed, then I could put down ramps n drive it off.
  • K3Nv2 @ K3Nv2:
    Used this one 5 times already impossible to clean
  • BigOnYa @ BigOnYa:
    You need the $900 copper coated ones, they are good for 10 times cooking before they are un cleanable
  • Psionic Roshambo @ Psionic Roshambo:
    Condoms are only meant to be used once Ken lol
  • K3Nv2 @ K3Nv2:
    Well damn that explains how you were born
  • BigOnYa @ BigOnYa:
    I tried Cavier for the first time today. That shit is nasty. Don't get why people like it.
  • Psionic Roshambo @ Psionic Roshambo:
    Eh it's good with Vodka and crackers
  • Psionic Roshambo @ Psionic Roshambo:
    Gotta have the whole experience
  • Psionic Roshambo @ Psionic Roshambo:
    Drink enough vodka so you can barely taste it
  • K3Nv2 @ K3Nv2:
    Depends on brand rich rich people spend like 500 a tin
  • Psionic Roshambo @ Psionic Roshambo:
    What I'm putting down is you gotta be trashed first lol
    +1
  • K3Nv2 @ K3Nv2:
    Like if psi fucked the fish the quality of the eggs will probably come out abnormal
  • BigOnYa @ BigOnYa:
    We had it spread on crackers, n I had Rum/Coke today. I like all fish and seafoods, but not that.
  • Psionic Roshambo @ Psionic Roshambo:
    Lol sorry Ken it was either the fish or your mom.... I picked the fish lol
    +1
  • K3Nv2 @ K3Nv2:
    Yeah still an abnormal egg came out
  • BigOnYa @ BigOnYa:
    Prob smelled the same anyways
    +1
    BigOnYa @ BigOnYa: Prob smelled the same anyways +1