Skip to content

iop: default srxfixup flags & allow zero-.text for non-exporting modules#817

Merged
uyjulian merged 1 commit intops2dev:masterfrom
fjtrujy:srxfixup_zero_text_dectection
Mar 6, 2026
Merged

iop: default srxfixup flags & allow zero-.text for non-exporting modules#817
uyjulian merged 1 commit intops2dev:masterfrom
fjtrujy:srxfixup_zero_text_dectection

Conversation

@fjtrujy
Copy link
Member

@fjtrujy fjtrujy commented Mar 6, 2026

Default IOP_SRXFIXUP_FLAGS to --rb --irx1 and use it for the iopfixup invocation. When the build does not produce exports.o, append --allow-zero-text so modules without an export table do not fail the zero-.text check. This keeps behavior consistent with iop/Rules.make while allowing top-level Makefiles to override IOP_SRXFIXUP_FLAGS when needed.

@fjtrujy fjtrujy requested a review from uyjulian March 6, 2026 22:33
@uyjulian
Copy link
Member

uyjulian commented Mar 6, 2026

May I suggest, for backwards compatibility

ifneq (,$(filter $(IOP_OBJS_DIR)exports.o,$(IOP_OBJS)))
IOP_OBJS := $(IOP_OBJS_DIR)exports.o $(filter-out $(IOP_OBJS_DIR)exports.o,$(IOP_OBJS))
endif

Default IOP_SRXFIXUP_FLAGS to --rb --irx1 and use it for the iopfixup
invocation. When the build does not produce exports.o, append
--allow-zero-text so modules without an export table do not fail the
zero-.text check. This keeps behavior consistent with iop/Rules.make while
allowing top-level Makefiles to override IOP_SRXFIXUP_FLAGS when needed.
@fjtrujy fjtrujy force-pushed the srxfixup_zero_text_dectection branch from 05d9356 to 916edea Compare March 6, 2026 22:54
Copy link
Member

@uyjulian uyjulian left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lgtm

@uyjulian uyjulian merged commit f188179 into ps2dev:master Mar 6, 2026
3 checks passed
@fjtrujy fjtrujy deleted the srxfixup_zero_text_dectection branch March 6, 2026 22:58
uyjulian added a commit to uyjulian/Open-PS2-Loader that referenced this pull request Mar 6, 2026
uyjulian added a commit to uyjulian/Open-PS2-Loader that referenced this pull request Mar 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants