Removing some other sections

This commit is contained in:
Francisco Javier Trujillo Mata
2025-06-23 13:24:52 +02:00
parent c7694722b6
commit 1f2f9188d9
2 changed files with 2 additions and 2 deletions

View File

@@ -188,7 +188,7 @@ $(PSP_EBOOT): $(TARGET).elf $(PSP_EBOOT_SFO)
endif
%.prx: %.elf
$(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
$(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

View File

@@ -56,7 +56,7 @@ $(TARGET).elf: $(OBJS)
endif
%.prx: %.elf
$(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
$(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