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.text' ' --keep-section=.rel.init' ' --keep-section=.rel.fini' ' --keep-section=.rel.sceStub.text' ' --keep-section=.rel.lib.ent' ' --keep-section=.rel.lib.stub' ' --keep-section=.rel.rodata.sceModuleInfo' ' --keep-section=.rel.rodata.sceResident' ' --keep-section=.rel.rodata' ' --keep-section=.rel.eh_frame' ' --keep-section=.rel.data' ' --keep-section=.rel.sdata' ' --keep-section=.rel.debug_aranges' ' --keep-section=.rel.debug_info' ' --keep-section=.rel.debug_line' ' --keep-section=.rel.debug_frame' ' --keep-section=.rel.debug_loclists' ' --keep-section=.rel.debug_rnglists' $< -o $(TARGET ) _stripped.elf
192+ psp-prxgen -v $(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.text' ' --keep-section=.rel.init' ' --keep-section=.rel.fini' ' --keep-section=.rel.sceStub.text' ' --keep-section=.rel.lib.ent' ' --keep-section=.rel.lib.stub' ' --keep-section=.rel.rodata.sceModuleInfo' ' --keep-section=.rel.rodata.sceResident' ' --keep-section=.rel.rodata' ' --keep-section=.rel.eh_frame' ' --keep-section=.rel.data' ' --keep-section=.rel.sdata' ' --keep-section=.rel.debug_aranges' ' --keep-section=.rel.debug_info' ' --keep-section=.rel.debug_line' ' --keep-section=.rel.debug_frame' ' --keep-section=.rel.debug_loclists' ' --keep-section=.rel.debug_rnglists' $< -o $(TARGET ) _stripped.elf
60+ psp-prxgen -v $(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