mirror of
https://github.com/pspdev/pspsdk.git
synced 2025-10-03 16:51:27 +00:00
Compare commits
2 Commits
6ba471c7c3
...
prx_strip
Author | SHA1 | Date | |
---|---|---|---|
|
1f2f9188d9 | ||
|
c7694722b6 |
@@ -188,7 +188,9 @@ $(PSP_EBOOT): $(TARGET).elf $(PSP_EBOOT_SFO)
|
||||
endif
|
||||
|
||||
%.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
|
||||
psp-build-exports -b $< > $@
|
||||
|
@@ -18,6 +18,7 @@ CC = psp-gcc
|
||||
CXX = psp-g++
|
||||
AS = psp-gcc
|
||||
LD = psp-gcc
|
||||
STRIP = psp-strip
|
||||
FIXUP = psp-fixup-imports
|
||||
|
||||
# Add PSPSDK includes and libraries.
|
||||
@@ -55,7 +56,9 @@ $(TARGET).elf: $(OBJS)
|
||||
endif
|
||||
|
||||
%.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
|
||||
psp-build-exports -b $< > $@
|
||||
|
Reference in New Issue
Block a user