Compare commits

2 Commits

Author SHA1 Message Date
Francisco Javier Trujillo Mata
1f2f9188d9 Removing some other sections 2025-06-23 13:24:52 +02:00
Francisco Javier Trujillo Mata
c7694722b6 Strip symbols 2025-06-23 12:58:41 +02:00
2 changed files with 7 additions and 2 deletions

View File

@@ -188,7 +188,9 @@ $(PSP_EBOOT): $(TARGET).elf $(PSP_EBOOT_SFO)
endif endif
%.prx: %.elf %.prx: %.elf
psp-prxgen $< $@ $(STRIP) --strip-unneeded --keep-section=.rodata.sce* --keep-section=.sceStub.text --keep-section=.lib.ent* --keep-section=.lib.stub* --keep-section=.symtab --keep-section=.strtab --keep-section=.dynsym --keep-section=.dynstr --keep-section=.hash --keep-section=.dynamic --keep-section=.got --keep-section=.plt --keep-section=.rel* --remove-section=.debug* --remove-section=.comment --remove-section=.gnu.attributes --remove-section=.MIPS.abiflags $< -o $(TARGET)_stripped.elf
psp-prxgen $(TARGET)_stripped.elf $@
-rm -f $(TARGET)_stripped.elf
%.c: %.exp %.c: %.exp
psp-build-exports -b $< > $@ psp-build-exports -b $< > $@

View File

@@ -18,6 +18,7 @@ CC = psp-gcc
CXX = psp-g++ CXX = psp-g++
AS = psp-gcc AS = psp-gcc
LD = psp-gcc LD = psp-gcc
STRIP = psp-strip
FIXUP = psp-fixup-imports FIXUP = psp-fixup-imports
# Add PSPSDK includes and libraries. # Add PSPSDK includes and libraries.
@@ -55,7 +56,9 @@ $(TARGET).elf: $(OBJS)
endif endif
%.prx: %.elf %.prx: %.elf
psp-prxgen $< $@ $(STRIP) --strip-unneeded --keep-section=.rodata.sce* --keep-section=.sceStub.text --keep-section=.lib.ent* --keep-section=.lib.stub* --keep-section=.symtab --keep-section=.strtab --keep-section=.dynsym --keep-section=.dynstr --keep-section=.hash --keep-section=.dynamic --keep-section=.got --keep-section=.plt --keep-section=.rel* --remove-section=.debug* --remove-section=.comment --remove-section=.gnu.attributes --remove-section=.MIPS.abiflags $< -o $(TARGET)_stripped.elf
psp-prxgen $(TARGET)_stripped.elf $@
-rm -f $(TARGET)_stripped.elf
%.c: %.exp %.c: %.exp
psp-build-exports -b $< > $@ psp-build-exports -b $< > $@