fix(relinker): warn when SELF modules are skipped #4501

Merged
devavijitsingh merged 4 commits from upstream-pr/4501 into main 2026-10-13 14:30:13 +00:00
devavijitsingh commented 2026-10-12 13:40:17 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by devavijitsingh on 2026-10-12T13:40:17Z.


What

Keep the existing behavior of skipping SELF/fSELF guest modules, but print a warning naming each skipped file and advising users to unwrap it. Cover both SELF magics and excluded modules in the regression test, and correct the user-facing documentation.

Closes #4488

Tested

Windows: git diff --check origin/main...HEAD — passed. The documented relinker build/test commands (cmake -S . -B build-relinker -G Ninja -DCMAKE_BUILD_TYPE=Release -DANYPS5_RELINKER_ONLY=ON -DBUILD_TESTING=ON; cmake --build build-relinker --parallel; ctest --test-dir build-relinker --output-on-failure) — not run: CMake Tools could not configure the project, and CMake/compiler executables are unavailable here. CI is pending.

Checklist

  • Based on current main; no other open PR implements the same functions
  • One topic per PR; follow-ups go in a new PR
  • No comments in code except technical debt
  • Unimplemented paths throw (NotImplemented_nid_no_patch); silent stubs are listed in TechnicalDebt
  • No notes, investigation .md files or images added to the repository (attach them to this PR)
  • New third-party code is a submodule built from source
  • Generic behaviour, not specific to one title
  • Depends on: none
  • Unblocks: none
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4830244115 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/4501). Originally posted by [devavijitsingh](https://github.com/devavijitsingh) on 2026-10-12T13:40:17Z. --- ### What Keep the existing behavior of skipping SELF/fSELF guest modules, but print a warning naming each skipped file and advising users to unwrap it. Cover both SELF magics and excluded modules in the regression test, and correct the user-facing documentation. Closes #4488 ### Tested <!-- OS, title or homebrew, what was checked. "Not tested" is a valid answer. --> Windows: `git diff --check origin/main...HEAD` — passed. The documented relinker build/test commands (`cmake -S . -B build-relinker -G Ninja -DCMAKE_BUILD_TYPE=Release -DANYPS5_RELINKER_ONLY=ON -DBUILD_TESTING=ON`; `cmake --build build-relinker --parallel`; `ctest --test-dir build-relinker --output-on-failure`) — not run: CMake Tools could not configure the project, and CMake/compiler executables are unavailable here. CI is pending. ### Checklist <!-- Rules behind each item: https://github.com/boykopovar/AnyPS5/blob/main/CONTRIBUTING.md --> - [x] Based on current `main`; no other open PR implements the same functions - [x] One topic per PR; follow-ups go in a new PR - [x] No comments in code except [technical debt](https://github.com/boykopovar/AnyPS5/blob/main/docs/dev/CONVENTIONS.md) - [x] Unimplemented paths throw (`NotImplemented_nid_no_patch`); silent stubs are listed in [TechnicalDebt](https://github.com/boykopovar/AnyPS5/blob/main/docs/dev/TechnicalDebt.md#silent-stubs) - [x] No notes, investigation `.md` files or images added to the repository (attach them to this PR) - [x] New third-party code is a submodule built from source - [x] Generic behaviour, not specific to one title - [x] Depends on: none - [x] Unblocks: none - [x] AI-assisted: yes
devavijitsingh commented 2026-10-12 17:02:19 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by devavijitsingh on 2026-10-12T17:02:19Z.


The overlap is just the compatibility-docs edit; this PR doesn’t depend on #4562. They cover separate entries, and I can resolve any doc conflict if needed. CI is now passing on Linux, macOS, and Windows.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6128864759 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/4501#issuecomment-6128864759). Originally posted by [devavijitsingh](https://github.com/devavijitsingh) on 2026-10-12T17:02:19Z. --- The overlap is just the compatibility-docs edit; this PR doesn’t depend on #4562. They cover separate entries, and I can resolve any doc conflict if needed. CI is now passing on Linux, macOS, and Windows.
github-actions[bot] commented 2026-10-13 14:10:46 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-13T14:10:46Z.


Other open pull requests touch the same code. Merging one will break the other, or both implement the same thing. If this one builds on them, list them in Depends on.

Pull request Conflicting files (lines on main) Same exports Same new files
#4623 core/relinker/cli/src/NativeModules.cpp L5, L40, L47, L60
docs/user/USAGE.md L7
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6147490106 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/4501#issuecomment-6147490106). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-13T14:10:46Z. --- <!-- pr-overlap --> Other open pull requests touch the same code. Merging one will break the other, or both implement the same thing. If this one builds on them, list them in **Depends on**. | Pull request | Conflicting files (lines on `main`) | Same exports | Same new files | |---|---|---|---| | #4623 | `core/relinker/cli/src/NativeModules.cpp` [L5](https://github.com/boykopovar/AnyPS5/blob/146f1715499c1f6346662cb45176ff33ec3ad445/core/relinker/cli/src/NativeModules.cpp#L5), [L40](https://github.com/boykopovar/AnyPS5/blob/146f1715499c1f6346662cb45176ff33ec3ad445/core/relinker/cli/src/NativeModules.cpp#L40), [L47](https://github.com/boykopovar/AnyPS5/blob/146f1715499c1f6346662cb45176ff33ec3ad445/core/relinker/cli/src/NativeModules.cpp#L47), [L60](https://github.com/boykopovar/AnyPS5/blob/146f1715499c1f6346662cb45176ff33ec3ad445/core/relinker/cli/src/NativeModules.cpp#L60)<br>`docs/user/USAGE.md` [L7](https://github.com/boykopovar/AnyPS5/blob/146f1715499c1f6346662cb45176ff33ec3ad445/docs/user/USAGE.md#L7) | | |
adriadam10 commented 2026-10-13 14:15:34 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-13T14:15:34Z.


Checked: relinker build and the 124 relinker-scope tests pass on the PR merged onto main; guest_module_directories fails without the change and passes with it; SELF magics (4F 15 3D 1D, 54 14 F5 EE) are correct; USAGE.md now matches the behaviour. #4623 makes the same change in the same lines, so this one goes first. Merging once the full Build is green.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6147586981 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/4501#issuecomment-6147586981). Originally posted by [adriadam10](https://github.com/adriadam10) on 2026-10-13T14:15:34Z. --- Checked: relinker build and the 124 relinker-scope tests pass on the PR merged onto main; `guest_module_directories` fails without the change and passes with it; SELF magics (`4F 15 3D 1D`, `54 14 F5 EE`) are correct; USAGE.md now matches the behaviour. #4623 makes the same change in the same lines, so this one goes first. Merging once the full Build is green.
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
boykopovar/AnyPS5!4501
No description provided.