Skip to content

Commit 4da3f21

Browse files
committed
fix: Remove .pdr section when stripping for iopmod
This section is for debug information and loadcore will try to relocate it, but it will apply it on the main program segment instead, breaking it
1 parent ed731d7 commit 4da3f21

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

iop/Rules.make

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ $(IOP_BIN_ELF): $(IOP_OBJS) $(IOP_LIB_ARCHIVES) $(IOP_ADDITIONAL_DEPS)
137137

138138
$(IOP_BIN_STRIPPED_ELF): $(IOP_BIN_ELF)
139139
$(DIR_GUARD)
140-
$(IOP_STRIP) --strip-debug -o $@ $<
140+
$(IOP_STRIP) --strip-debug --remove-section=.pdr -o $@ $<
141141

142142
$(IOP_BIN): $(IOP_BIN_STRIPPED_ELF) $(PS2SDKSRC)/tools/srxfixup/bin/srxfixup
143143
$(DIR_GUARD)

samples/Makefile.iopglobal_sample

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ $(IOP_BIN_ELF): $(IOP_OBJS)
125125

126126
$(IOP_BIN_STRIPPED_ELF): $(IOP_BIN_ELF)
127127
$(DIR_GUARD)
128-
$(IOP_STRIP) --strip-debug -o $@ $<
128+
$(IOP_STRIP) --strip-debug --remove-section=.pdr -o $@ $<
129129

130130
$(IOP_BIN): $(IOP_BIN_STRIPPED_ELF)
131131
$(DIR_GUARD)

0 commit comments

Comments
 (0)