Skip to content

Support configurable callable entry points - #225

Open
GTTeancum wants to merge 1 commit into
ran-j:mainfrom
GTTeancum:fix/configurable-entry-points
Open

Support configurable callable entry points#225
GTTeancum wants to merge 1 commit into
ran-j:mainfrom
GTTeancum:fix/configurable-entry-points

Conversation

@GTTeancum

Copy link
Copy Markdown

Summary

  • add an optional resume_entry_points_file manifest for known callable interior PCs
  • add opt-in entry_point_pointer_ranges scanning for clustered function pointers in stripped binaries
  • validate every imported target against decoded executable instructions and register it through its owning function wrapper
  • document the configuration and cover parsing plus end-to-end generated registration

Why

Stripped PS2 ELFs and analysis maps can merge callback implementations into a larger discovered function. Their data tables still contain the real callable PCs, but indirect runtime dispatch cannot reach those interior addresses unless the recompiler exposes them as resume entries. This keeps the heuristic narrowly opt-in and range-bounded while allowing projects to supply exact manifests when available.

Testing

  • Release build: cmake --build out/build --config Release --target ps2x_tests -- /m:4 /nodeReuse:false
  • ps2x_tests.exe: 427 passed, 0 failed

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.

1 participant