Homebrew Official 5.5.X ELF Loader

dpad_5678

Ape weak on own. Ape strong in unity.
Member
Joined
Nov 19, 2015
Messages
2,219
Trophies
1
XP
2,880
Country
United States
Wasn't one of the first things done when the Wii was exploited in Twilight Princess run .elf files? I think it was, and I recall a Sega Genesis emulator being one of the first .elf files. And eventually that method led to the ability to install the homebrew channel... is that theoretically possible with this kind of thing? Would we possibly through this method be able to install a Wii U homebrew channel (if someone managed to develop one) Cuz if so, this could be freaking huge.
Well it appears we COULD make a nice UI launcher. I'll try it and report back what happens.
 

eliboa

Well-Known Member
Member
Joined
Jan 13, 2016
Messages
157
Trophies
0
XP
1,267
Country
France
Strange... my WiiU crashes when trying to load the ELF (grayish screen).
This example just do a screen effect (fade from white to black then from black to white) so you may think it crashed. Can you quit the program with home button ?
If not, it's r real crash :P.
Btw, I helped SonyUSA yesterday with her c@ve elf issue, I forgot to tell you we found a solution, you can check out her github to see what i did to compile the elf.
 

cmdj13

Well-Known Member
Member
Joined
Aug 28, 2015
Messages
139
Trophies
0
Location
In front of my computer
XP
219
Country
Gambia, The
This example just do a screen effect (fade from white to black then from black to white) so you may think it crashed. Can you quit the program with home button ?
If not, it's r real crash :P.
Btw, I helped SonyUSA yesterday with her c@ve elf issue, I forgot to tell you we found a solution, you can check out her github to see what i did to compile the elf.
No, I cant exit (and I know what it should look like from the normal GX2 Thread example :P).
And SonyUSA already told me some stuff :)
 

FIX94

Former Staff
Former Staff
Joined
Dec 3, 2009
Messages
7,284
Trophies
0
Age
30
Location
???
XP
11,248
Country
Germany
That _Exit(); Problem is strange. It seems to work for some, but for @cmdj13 and me it always crashes. I have a 5.5.1E console.
yea thats the old problem I had when I initially wrote the elf loader half a year ago, on my 3.1.0 console it always exited properly but for some who tested it on 5.3.2 to me it could not exit as soon as the MEM1 area was touched which is getting abused by me to easly load data in user-mode without any kernel exploit, and since this is basically the same thing its probably because of that.
 

cmdj13

Well-Known Member
Member
Joined
Aug 28, 2015
Messages
139
Trophies
0
Location
In front of my computer
XP
219
Country
Gambia, The
I'm trying to compile my keyboard project (http://github.com/cmdj13/WiiU-Keyboard/) as an ELF but I always get multiple errors:
Code:
draw.o: In function `flipBuffers':
draw.c:(.text+0x28): relocation truncated to fit: R_PPC_REL24 against symbol `OSDynLoad_Acquire' defined in .sbss section in init.o
draw.c:(.text+0x4c): relocation truncated to fit: R_PPC_REL24 against symbol `OSDynLoad_FindExport' defined in .sbss section in init.o
draw.c:(.text+0x70): relocation truncated to fit: R_PPC_REL24 against symbol `OSDynLoad_FindExport' defined in .sbss section in init.o
draw.c:(.text+0x94): relocation truncated to fit: R_PPC_REL24 against symbol `OSDynLoad_FindExport' defined in .sbss section in init.o
draw.o: In function `drawString':
draw.c:(.text+0x16c): relocation truncated to fit: R_PPC_REL24 against symbol `OSDynLoad_Acquire' defined in .sbss section in init.o
draw.c:(.text+0x190): relocation truncated to fit: R_PPC_REL24 against symbol `OSDynLoad_FindExport' defined in .sbss section in init.o
draw.o: In function `fillScreen':
draw.c:(.text+0x23c): relocation truncated to fit: R_PPC_REL24 against symbol `OSDynLoad_Acquire' defined in .sbss section in init.o
draw.c:(.text+0x260): relocation truncated to fit: R_PPC_REL24 against symbol `OSDynLoad_FindExport' defined in .sbss section in init.o
draw.o: In function `drawPixel':
draw.c:(.text+0x328): relocation truncated to fit: R_PPC_REL24 against symbol `OSDynLoad_Acquire' defined in .sbss section in init.o
draw.c:(.text+0x34c): relocation truncated to fit: R_PPC_REL24 against symbol `OSDynLoad_FindExport' defined in .sbss section in init.o
loader.o: In function `_main':
loader.c:(.text+0x30): additional relocation overflows omitted from the output
collect2: error: ld returned 1 exit status
My code uses some functions from draw.c so I put that into the src folder. I googled the errors and it seems to be a problem with linking (some files are too far away from each other to work) but I don't know anything about ASM so if anyone could tell me how to get that to work it would be very nice.
 

eliboa

Well-Known Member
Member
Joined
Jan 13, 2016
Messages
157
Trophies
0
XP
1,267
Country
France
I'm trying to compile my keyboard project (http://github.com/cmdj13/WiiU-Keyboard/) as an ELF but I always get multiple errors:
Code:
draw.o: In function `flipBuffers':
draw.c:(.text+0x28): relocation truncated to fit: R_PPC_REL24 against symbol `OSDynLoad_Acquire' defined in .sbss section in init.o
draw.c:(.text+0x4c): relocation truncated to fit: R_PPC_REL24 against symbol `OSDynLoad_FindExport' defined in .sbss section in init.o
draw.c:(.text+0x70): relocation truncated to fit: R_PPC_REL24 against symbol `OSDynLoad_FindExport' defined in .sbss section in init.o
draw.c:(.text+0x94): relocation truncated to fit: R_PPC_REL24 against symbol `OSDynLoad_FindExport' defined in .sbss section in init.o
draw.o: In function `drawString':
draw.c:(.text+0x16c): relocation truncated to fit: R_PPC_REL24 against symbol `OSDynLoad_Acquire' defined in .sbss section in init.o
draw.c:(.text+0x190): relocation truncated to fit: R_PPC_REL24 against symbol `OSDynLoad_FindExport' defined in .sbss section in init.o
draw.o: In function `fillScreen':
draw.c:(.text+0x23c): relocation truncated to fit: R_PPC_REL24 against symbol `OSDynLoad_Acquire' defined in .sbss section in init.o
draw.c:(.text+0x260): relocation truncated to fit: R_PPC_REL24 against symbol `OSDynLoad_FindExport' defined in .sbss section in init.o
draw.o: In function `drawPixel':
draw.c:(.text+0x328): relocation truncated to fit: R_PPC_REL24 against symbol `OSDynLoad_Acquire' defined in .sbss section in init.o
draw.c:(.text+0x34c): relocation truncated to fit: R_PPC_REL24 against symbol `OSDynLoad_FindExport' defined in .sbss section in init.o
loader.o: In function `_main':
loader.c:(.text+0x30): additional relocation overflows omitted from the output
collect2: error: ld returned 1 exit status
My code uses some functions from draw.c so I put that into the src folder. I googled the errors and it seems to be a problem with linking (some files are too far away from each other to work) but I don't know anything about ASM so if anyone could tell me how to get that to work it would be very nice.
You have to include init.h in your draw.c file ;)
 

NexoCube

Well-Known Member
Member
Joined
Nov 3, 2015
Messages
1,222
Trophies
0
Age
29
Location
France
XP
1,340
Country
France
Just made a post.
Look in the attachements, there's all GX2 Functions (Downloads.Rar) (GX2 doesn't mean Loadiine, but more like the Graphics library xP)
 

cmdj13

Well-Known Member
Member
Joined
Aug 28, 2015
Messages
139
Trophies
0
Location
In front of my computer
XP
219
Country
Gambia, The
Just made a post.
Look in the attachements, there's all GX2 Functions (Downloads.Rar) (GX2 doesn't mean Loadiine, but more like the Graphics library xP)
That does not answer my question nor is it a solution to my problem. I'd have to rewrite my whole code if I switched to GX2 functions and it would be more code to write. The draw library included with libwiiu is just perfect for my project.
 

NexoCube

Well-Known Member
Member
Joined
Nov 3, 2015
Messages
1,222
Trophies
0
Age
29
Location
France
XP
1,340
Country
France
That does not answer my question nor is it a solution to my problem. I'd have to rewrite my whole code if I switched to GX2 functions and it would be more code to write. The draw library included with libwiiu is just perfect for my project.

Okay ^^
 

cmdj13

Well-Known Member
Member
Joined
Aug 28, 2015
Messages
139
Trophies
0
Location
In front of my computer
XP
219
Country
Gambia, The
Last edited by cmdj13,

NexoCube

Well-Known Member
Member
Joined
Nov 3, 2015
Messages
1,222
Trophies
0
Age
29
Location
France
XP
1,340
Country
France
  • Like
Reactions: cmdj13

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • No one is chatting at the moment.
  • Quincy @ Quincy:
    Usually when such a big title leaks the Temp will be the first to report about it (going off of historical reports here, Pokemon SV being the latest one I can recall seeing pop up here)
  • K3Nv2 @ K3Nv2:
    I still like how a freaking mp3 file hacks webos all that security defeated by text yet again
  • BigOnYa @ BigOnYa:
    They have simulators for everything nowdays, cray cray. How about a sim that shows you playing the Switch.
  • K3Nv2 @ K3Nv2:
    That's called yuzu
    +1
  • BigOnYa @ BigOnYa:
    I want a 120hz 4k tv but crazy how more expensive the 120hz over the 60hz are. Or even more crazy is the price of 8k's.
  • K3Nv2 @ K3Nv2:
    No real point since movies are 30fps
  • BigOnYa @ BigOnYa:
    Not a big movie buff, more of a gamer tbh. And Series X is 120hz 8k ready, but yea only 120hz 4k games out right now, but thinking of in the future.
  • K3Nv2 @ K3Nv2:
    Mostly why you never see TV manufacturers going post 60hz
  • BigOnYa @ BigOnYa:
    I only watch tv when i goto bed, it puts me to sleep, and I have a nas drive filled w my fav shows so i can watch them in order, commercial free. I usually watch Married w Children, or South Park
  • K3Nv2 @ K3Nv2:
    Stremio ruined my need for nas
  • BigOnYa @ BigOnYa:
    I stream from Nas to firestick, one on every tv, and use Kodi. I'm happy w it, plays everything. (I pirate/torrent shows/movies on pc, and put on nas)
  • K3Nv2 @ K3Nv2:
    Kodi repost are still pretty popular
  • BigOnYa @ BigOnYa:
    What the hell is Kodi reposts? what do you mean, or "Wut?" -xdqwerty
  • K3Nv2 @ K3Nv2:
    Google them basically web crawlers to movie sites
  • BigOnYa @ BigOnYa:
    oh you mean the 3rd party apps on Kodi, yea i know what you mean, yea there are still a few cool ones, in fact watched the new planet of the apes movie other night w wifey thru one, was good pic surprisingly, not a cam
  • BigOnYa @ BigOnYa:
    Damn, only $2.06 and free shipping. Gotta cost more for them to ship than $2.06
    +1
  • BigOnYa @ BigOnYa:
    I got my Dad a firestick for Xmas and showed him those 3rd party sites on Kodi, he loves it, all he watches anymore. He said he has got 3 letters from AT&T already about pirating, but he says f them, let them shut my internet off (He wants out of his AT&T contract anyways)
  • K3Nv2 @ K3Nv2:
    That's where stremio comes to play never got a letter about it
  • BigOnYa @ BigOnYa:
    I just use a VPN, even give him my login and password so can use it also, and he refuses, he's funny.
  • BigOnYa @ BigOnYa:
    I had to find and get him an old style flip phone even without text, cause thats what he wanted. No text, no internet, only phone calls. Old, old school.
  • Psionic Roshambo @ Psionic Roshambo:
    @BigOnYa, Lol I bought a new USB card reader thing on AliExpress last month for I think like 87 cents. Free shipping from China... It arrived it works and honestly I don't understand how it was so cheap.
    +1
    Psionic Roshambo @ Psionic Roshambo: @BigOnYa, Lol I bought a new USB card reader thing on AliExpress last month for I think like 87... +1