 |
forums.ps2dev.org Homebrew PS2, PSP & PS3 Development Discussions
|
| View previous topic :: View next topic |
| Author |
Message |
Noko
Joined: 06 Sep 2008 Posts: 23
|
Posted: Thu Nov 06, 2008 2:51 am Post subject: When making prx: Error, found no relocation sections |
|
|
I'm having troubles making my program run on lite. Everything compiles and links fine, but psp-prxgen fails with "Error, found no relocation sections"
Here's the output of make:
| Code: | psp-g++ -I. -I/usr/local/pspdev/psp/sdk/include -Wall -I/usr/local/pspdev/psp/include/SDL -Dmain=SDL_main -I. -I/usr/local/pspdev/psp/sdk/include -Wall -I/usr/local/pspdev/psp/include/SDL -Dmain=SDL_main -fno-exceptions -fno-rtti -D_PSP_FW_ERSION=350 -c -o cache.o cache.cc
<skipped>
psp-g++ -I. -I/usr/local/pspdev/psp/sdk/include -Wall -I/usr/local/pspdev/psp/include/SDL -Dmain=SDL_main -I. -I/usr/local/pspdev/psp/sdk/include -Wall -I/usr/local/pspdev/psp/include/SDL -Dmain=SDL_main -fno-exceptions -fno-rtti -D_PSP_FW_VERSION=350 -c -o userinput.o userinput.cc
psp-gcc cache.o globals.o highlevel.o list.o resize.o rw_lcscript.o rw_ymk.o script.o strings.o utils.o game.o hash.o main.o rw.o sjis.o unicode.o yamlx.o interface.o calendar.o userinput.o /usr/local/pspdev/psp/sdk/lib/prxexports.o -lSDL_ttf -lfreetype -lyaml -lSDL_mixer -lSDL_image -lSDL_gfx -ljpeg -lpng -lz -lvorbisfile -lvorbis -logg -lSDL -lGL -lm -lstdc++ -lc -L/usr/local/pspdev/psp/sdk/lib -lpspdebug -lpspdisplay -lpspgu -lpspge -lpspctrl -lpspsdk -lpspaudio -lpspvfpu -lpsphprm -lpsprtc -lpspnet -lpspnet_inet -lpspnet_apctl -lpspnet_resolver -lpsputility -lpspuser -lpspkernel -o noscript.elf
psp-fixup-imports noscript.elf
psp-prxgen noscript.elf noscript.prx
Error, found no relocation sections
mksfoex -d MEMSIZE=1 'ONE' PARAM.SFO
pack-pbp EBOOT.PBP PARAM.SFO NULL \
NULL NULL NULL \
NULL noscript.prx NULL
ERROR: Could not open the file. (noscript.prx)
make: *** [EBOOT.PBP] Error 255 |
readelf -S:
| Code: | There are 40 section headers, starting at offset 0x4460ac:
Section Headers:
[Nr] Name Type Addr Off Size ES Flg Lk Inf Al
[ 0] NULL 00000000 000000 000000 00 0 0 0
[ 1] .reginfo MIPS_REGINFO 08900000 191228 000018 01 0 0 4
[ 2] .init PROGBITS 08900018 001018 000028 00 AX 0 0 1
[ 3] .text PROGBITS 08900040 001040 152c6c 00 AX 0 0 4
[ 4] .fini PROGBITS 08a52cac 153cac 000020 00 AX 0 0 1
[ 5] .sceStub.text PROGBITS 08a52ccc 153ccc 000260 00 AX 0 0 4
[ 6] .lib.ent.top PROGBITS 08a52f2c 153f2c 000004 00 A 0 0 4
[ 7] .lib.ent PROGBITS 08a52f30 153f30 000020 00 A 0 0 4
[ 8] .lib.ent.btm PROGBITS 08a52f50 153f50 000004 00 A 0 0 4
[ 9] .lib.stub.top PROGBITS 08a52f54 153f54 000004 00 A 0 0 4
[10] .lib.stub PROGBITS 08a52f58 153f58 0000f0 00 A 0 0 4
[11] .lib.stub.btm PROGBITS 08a53048 154048 000004 00 A 0 0 4
[12] .rodata.sceModule PROGBITS 08a53050 154050 000040 00 A 0 0 16
[13] .rodata.sceReside PROGBITS 08a53090 154090 0000fc 00 A 0 0 4
[14] .rodata.sceNid PROGBITS 08a5318c 15418c 000130 00 A 0 0 4
[15] .rodata PROGBITS 08a532c0 1542c0 029684 00 A 0 0 16
[16] .eh_frame PROGBITS 08a7ca44 17da44 0007b8 00 WA 0 0 4
[17] .gcc_except_table PROGBITS 08a7d1fc 17e1fc 0000e4 00 WA 0 0 4
[18] .ctors PROGBITS 08a7d2e0 17e2e0 000020 00 WA 0 0 4
[19] .dtors PROGBITS 08a7d300 17e300 000008 00 WA 0 0 4
[20] .jcr PROGBITS 08a7d308 17e308 000004 00 WA 0 0 4
[21] .data PROGBITS 08a7d310 17e310 012df0 00 WA 0 0 16
[22] .sdata PROGBITS 08a90100 191100 000128 00 WAp 0 0 8
[23] .sbss NOBITS 08a90228 191228 000134 00 WAp 0 0 8
[24] .bss NOBITS 08a90380 191228 02f0d0 00 WA 0 0 64
[25] .comment PROGBITS 00000000 191240 00328e 00 0 0 1
[26] .debug_aranges MIPS_DWARF 00000000 1944d0 003410 00 0 0 8
[27] .debug_pubnames MIPS_DWARF 00000000 1978e0 008f54 00 0 0 1
[28] .debug_info MIPS_DWARF 00000000 1a0834 141f3c 00 0 0 1
[29] .debug_abbrev MIPS_DWARF 00000000 2e2770 029a61 00 0 0 1
[30] .debug_line MIPS_DWARF 00000000 30c1d1 038578 00 0 0 1
[31] .debug_frame MIPS_DWARF 00000000 34474c 00fed0 00 0 0 4
[32] .debug_str MIPS_DWARF 00000000 35461c 025a78 01 MS 0 0 1
[33] .debug_loc MIPS_DWARF 00000000 37a094 0b993b 00 0 0 1
[34] .mdebug.eabi32 PROGBITS 00000000 4339cf 000000 00 0 0 1
[35] .gcc_compiled_lon PROGBITS 00000000 4339cf 000000 00 0 0 1
[36] .debug_ranges MIPS_DWARF 00000000 4339cf 012528 00 0 0 1
[37] .shstrtab STRTAB 00000000 445ef7 0001b2 00 0 0 1
[38] .symtab SYMTAB 00000000 4466ec 014570 10 39 2453 4
[39] .strtab STRTAB 00000000 45ac5c 016f09 00 0 0 1
Key to Flags:
W (write), A (alloc), X (execute), M (merge), S (strings)
I (info), L (link order), G (group), x (unknown)
O (extra OS processing required) o (OS specific), p (processor specific) |
What do I do now? Is it issue of ordering of libraries? I'm using latest psptoolchain from svn, just rebuilt it toady. |
|
| Back to top |
|
 |
TyRaNiD
Joined: 18 Jan 2004 Posts: 918
|
Posted: Thu Nov 06, 2008 3:08 am Post subject: |
|
|
| How are you getting it to build? I am assuming you are using a custom makefile :) |
|
| Back to top |
|
 |
Noko
Joined: 06 Sep 2008 Posts: 23
|
Posted: Thu Nov 06, 2008 3:23 am Post subject: |
|
|
Oh
I found the mistake
I had LINK.c = psp-gcc in my Makefile which removes additional flags to linker |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|