Advertising (This ad goes away for registered users. You can Login or Register)

(after) linking: no sceModuleInfo section found

Forum rules
Forum rule Nº 15 is strictly enforced in this subforum.
Post Reply
danielt3
Posts: 5
Joined: Sat Jul 09, 2011 5:11 am
Location: São Paulo, Brazil

(after) linking: no sceModuleInfo section found

Post by danielt3 » Sat Mar 12, 2016 11:22 pm

Hello, all.

After solving the problem with the linker order in PSP, I'm now facing a different issue.

I'm trying to use an IDE to build my PSP code. I have setup the paths correctly (I guess) and I'm able to build all of the objects and the ELF file with the PSP toolchain I have installed into the IDE.

But PSP needs further processing in order to generate running code. According to the build examples, after generating the ELF, I have to call psp-fixup-imports in the file. The problem is that this tool is returning the following error:

Code: Select all

Error, no sceModuleInfo section found
I'm not using any kernel libs nor trying to build a prx file.

1.) Can I just ignore this and move on? I mean, is a sceModuleInfo section really needed for a single ELF executable? (for a prx it is quit reasonable).

2.) If not, how can I fix it? I suspect it is related to linker script (probably the toolchain is using the wrong one but I'm not sure about that)

Can anyone help?
Advertising

WorldGenesis
Posts: 11
Joined: Thu Jan 13, 2011 4:00 pm

Re: (after) linking: no sceModuleInfo section found

Post by WorldGenesis » Tue Apr 05, 2016 1:37 pm

sceModuleInfo holds information such as the module name, and revision. It might hold the heap size as well, but I'm not too sure on that. D:
Advertising
PSP-1001 - 1.00 bogus
PSVita-1001 3.68 h-encore

Fighter19
Posts: 9
Joined: Fri Jan 15, 2016 6:20 pm

Re: (after) linking: no sceModuleInfo section found

Post by Fighter19 » Thu May 12, 2016 9:23 pm

You are missing something like

Code: Select all

#include <pspkernel.h>
#include <pspdebug.h>

/* Define the module info section */
PSP_MODULE_INFO("GETREKT", 0, 1, 1);
/* Define the main thread's attribute value (optional) */
PSP_MAIN_THREAD_ATTR(THREAD_ATTR_USER | THREAD_ATTR_VFPU);
PSP_HEAP_SIZE_MAX();
/* Define printf, just to make typing easier */
//#define printf	pspDebugScreenPrintf
As far as I can tell.

Post Reply

Return to “Programming and Security”