File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed
Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -188,7 +188,9 @@ $(PSP_EBOOT): $(TARGET).elf $(PSP_EBOOT_SFO)
188188endif
189189
190190% .prx : % .elf
191- psp-prxgen $< $@
191+ $(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* $< -o $(TARGET ) _stripped.elf
192+ psp-prxgen $(TARGET ) _stripped.elf $@
193+ -rm -f $(TARGET ) _stripped.elf
192194
193195% .c : % .exp
194196 psp-build-exports -b $< > $@
Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ CC = psp-gcc
1818CXX = psp-g++
1919AS = psp-gcc
2020LD = psp-gcc
21+ STRIP = psp-strip
2122FIXUP = psp-fixup-imports
2223
2324# Add PSPSDK includes and libraries.
@@ -55,7 +56,9 @@ $(TARGET).elf: $(OBJS)
5556endif
5657
5758% .prx : % .elf
58- psp-prxgen $< $@
59+ $(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* $< -o $(TARGET ) _stripped.elf
60+ psp-prxgen $(TARGET ) _stripped.elf $@
61+ -rm -f $(TARGET ) _stripped.elf
5962
6063% .c : % .exp
6164 psp-build-exports -b $< > $@
You can’t perform that action at this time.
0 commit comments