mirror of
https://github.com/pspdev/pspsdk.git
synced 2025-10-03 16:51:27 +00:00
Strip symbols
This commit is contained in:
@@ -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* $< -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 $< > $@
|
||||||
|
@@ -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* $< -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 $< > $@
|
||||||
|
Reference in New Issue
Block a user