fix(nid): allow PE aliases for same function #2506

Closed
jihirmas wants to merge 1 commit from upstream-pr/2506 into main
jihirmas commented 2026-10-09 23:38:18 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by jihirmas on 2026-10-09T23:38:18Z.


What

Allow duplicate patched PE export names when the entries resolve to the same function RVA. MinGW exports both the explicit APS5_EXPORT alias and the function symbol; both names can correctly map to the same NID. Distinct function RVAs with the same patched name still fail validation. Add a PE regression test for both cases.

Tested

  • Windows 11, WinLibs GCC 15.2.0, CMake 4.4.4: full build passed.
  • Patched all 118 PRXs; libSceVideoOut.prx patched successfully.
  • NID alias regression test, patched library loading, and both VideoOut runtime tests passed.
  • Full CTest run: unrelated existing failures included a Python 3.10 incompatibility, six tests configured with a missing CMake executable path, and two guest memory tests exiting with 0xc0000409.

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
  • New third-party code is a submodule built from source
  • Generic behaviour, not specific to one title
  • Depends on: none
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4807018207 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/2506). Originally posted by [jihirmas](https://github.com/jihirmas) on 2026-10-09T23:38:18Z. --- ### What Allow duplicate patched PE export names when the entries resolve to the same function RVA. MinGW exports both the explicit `APS5_EXPORT` alias and the function symbol; both names can correctly map to the same NID. Distinct function RVAs with the same patched name still fail validation. Add a PE regression test for both cases. ### Tested - Windows 11, WinLibs GCC 15.2.0, CMake 4.4.4: full build passed. - Patched all 118 PRXs; `libSceVideoOut.prx` patched successfully. - NID alias regression test, patched library loading, and both VideoOut runtime tests passed. - Full CTest run: unrelated existing failures included a Python 3.10 incompatibility, six tests configured with a missing CMake executable path, and two guest memory tests exiting with `0xc0000409`. ### Checklist - [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 - [x] New third-party code is a submodule built from source - [x] Generic behaviour, not specific to one title - [x] Depends on: none - [x] AI-assisted: yes
github-actions[bot] commented 2026-10-09 23:40:29 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-09T23:40:29Z.


Thank you for your interest in the project! We are sorry, but we cannot accept more PRs while we work through the existing backlog. This PR has been automatically closed and labeled "intake paused". This is not a judgment of the quality of your changes.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6091140328 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/2506#issuecomment-6091140328). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-09T23:40:29Z. --- Thank you for your interest in the project! We are sorry, but we cannot accept more PRs while we work through the existing backlog. This PR has been automatically closed and labeled "intake paused". This is not a judgment of the quality of your changes.

Pull request closed

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!2506
No description provided.