I have never programed for the PSP in mips so I am a little confused here.
Code: Select all
psp-gcc -I. -IC:/pspsdk/psp/sdk/include -G0 -Wall -O0 -ggdb -I. -IC:/pspsdk/psp
/sdk/include -G0 -Wall -O0 -ggdb -c -o main.o main.S
psp-gcc -I. -IC:/pspsdk/psp/sdk/include -G0 -Wall -O0 -ggdb -D_PSP_FW_VERSION=1
50 -L. -LC:/pspsdk/psp/sdk/lib -nostartfiles main.o -lpspdebug -lpspdisplay -
lpspge -lpspctrl -lpspsdk -lc -lpspnet -lpspnet_inet -lpspnet_apctl -lpspnet_res
olver -lpsputility -lpspuser -lpspkernel -o hello
c:/pspsdk/bin/../lib/gcc/psp/4.3.5/../../../../psp/bin/ld.exe: warning: cannot f
ind entry symbol _start; defaulting to 0000000008900018
true hello
psp-gcc -I. -IC:/pspsdk/psp/sdk/include -G0 -Wall -O0 -ggdb -D_PSP_FW_VERSION=1
50 -L. -LC:/pspsdk/psp/sdk/lib -nostartfiles main.o -lpspdebug -lpspdisplay -
lpspge -lpspctrl -lpspsdk -lc -lpspnet -lpspnet_inet -lpspnet_apctl -lpspnet_res
olver -lpsputility -lpspuser -lpspkernel -o world.elf
c:/pspsdk/bin/../lib/gcc/psp/4.3.5/../../../../psp/bin/ld.exe: warning: cannot f
ind entry symbol _start; defaulting to 0000000008900018
true world.elf
mksfo 'Hello World' PARAM.SFO
psp-strip hello world.elf -o hello world_strip.elf
Usage: psp-strip <option(s)> in-file(s)
Removes symbols and sections from files
The options are:
-I --input-target=<bfdname> Assume input file is in format <bfdname>
-O --output-target=<bfdname> Create an output file in format <bfdname>
-F --target=<bfdname> Set both input and output format to <bfdname>
-p --preserve-dates Copy modified/access timestamps to the output
-R --remove-section=<name> Remove section <name> from the output
-s --strip-all Remove all symbol and relocation information
-g -S -d --strip-debug Remove all debugging symbols & sections
--strip-unneeded Remove all symbols not needed by relocations
--only-keep-debug Strip everything but the debug information
-N --strip-symbol=<name> Do not copy symbol <name>
-K --keep-symbol=<name> Do not strip symbol <name>
--keep-file-symbols Do not strip file symbol(s)
-w --wildcard Permit wildcard in symbol comparison
-x --discard-all Remove all non-global symbols
-X --discard-locals Remove any compiler-generated symbols
-v --verbose List all object files modified
-V --version Display this program's version number
-h --help Display this output
--info List object formats & architectures supported
-o <file> Place stripped output into <file>
psp-strip: supported targets: elf32-littlemips elf32-bigmips elf64-bigmips elf64
-littlemips elf64-little elf64-big elf32-little elf32-big srec symbolsrec tekhex
binary ihex
make: *** [EBOOT.PBP] Error 1
Code: Select all
.text
main:
la $a0, hello
li $v0, 4
syscall
li $v0, 10
syscall
.data
hello: .asciiz "Hello World\n"
Code: Select all
TARGET = hello world
OBJS = main.o
INCDIR =
CFLAGS = -G0 -O0 -Wall -ggdb
CXXFLAGS = $(CFLAGS) -fno-exceptions -fno-rtti
ASFLAGS = $(CFLAGS)
LIBDIR =
LDFLAGS = -nostartfiles
LIBS=
EXTRA_TARGETS = EBOOT.PBP
PSP_EBOOT_TITLE = Hello World
PSPSDK=$(shell psp-config --pspsdk-path)
include $(PSPSDK)/lib/build.mak
FIXUP=true