Skip to content

test(relinker): pin invalid guest TLS segment large memory size - #13765

Closed
rooklz wants to merge 1 commit into
boykopovar:mainfrom
rooklz:test/invalid-guest-tls-segment-large-memsz
Closed

rooklz wants to merge 1 commit into
boykopovar:mainfrom
rooklz:test/invalid-guest-tls-segment-large-memsz

Conversation

@rooklz

@rooklz rooklz commented Oct 31, 2026

Copy link
Copy Markdown
Contributor

What

Guest modules with a PT_TLS program header whose p_memsz exceeds 0x7fff0000 are refused on the macOS guest conversion path (GuestTlsBlockSize in MacOsImage.cpp emits Invalid or unsupported ELF TLS layout). ElfReader::ReadProgramHeaders does not apply this cap, so the refusal is only observable with --macos. This adds one invalid_cases_macos entry with p_memsz=0x80000000, valid power-of-two p_align=8, and p_filesz=0.

Tested

macOS arm64, upstream/main 0835ec8bdc, Python 3.13, relinker-only Release -DANYPS5_RELINKER_ONLY=ON -DBUILD_TESTING=ON:

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 under Silent stubs in their library's technical debt file
  • 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
  • Fixes: none
  • Unblocks: none
  • GPUs tested: n/a
  • AI-assisted: yes

@rooklz

rooklz commented Oct 31, 2026

Copy link
Copy Markdown
Contributor Author

Consolidated into #14079, which adds all of these guest_none_relocations invalid cases in one change so the test file has a single open pull request. Closing this per-case pull request in favour of that one.

@rooklz rooklz closed this Oct 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant