Skip to content

Commit

Permalink
fix: Remove .pdr section when stripping for iopmod
Browse files Browse the repository at this point in the history
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
  • Loading branch information
uyjulian committed Feb 6, 2024
1 parent ed731d7 commit 4da3f21
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion iop/Rules.make
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ $(IOP_BIN_ELF): $(IOP_OBJS) $(IOP_LIB_ARCHIVES) $(IOP_ADDITIONAL_DEPS)

$(IOP_BIN_STRIPPED_ELF): $(IOP_BIN_ELF)
$(DIR_GUARD)
$(IOP_STRIP) --strip-debug -o $@ $<
$(IOP_STRIP) --strip-debug --remove-section=.pdr -o $@ $<

$(IOP_BIN): $(IOP_BIN_STRIPPED_ELF) $(PS2SDKSRC)/tools/srxfixup/bin/srxfixup
$(DIR_GUARD)
Expand Down
2 changes: 1 addition & 1 deletion samples/Makefile.iopglobal_sample
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ $(IOP_BIN_ELF): $(IOP_OBJS)

$(IOP_BIN_STRIPPED_ELF): $(IOP_BIN_ELF)
$(DIR_GUARD)
$(IOP_STRIP) --strip-debug -o $@ $<
$(IOP_STRIP) --strip-debug --remove-section=.pdr -o $@ $<

$(IOP_BIN): $(IOP_BIN_STRIPPED_ELF)
$(DIR_GUARD)
Expand Down

0 comments on commit 4da3f21

Please sign in to comment.