Repository navigation
Conversation
input.c calls act_cycle_live (the Master Cycle check next to horse_riding), which the test doesn't define. GNU ld drops the caller with --gc-sections and never notices, but COFF lld reports the undefined symbol before it discards sections, so the test fails to link with -fuse-ld=lld (llvm-mingw, for one). A stub that says Link isn't on the Cycle keeps the link strict for symbols the test does reach, instead of allowing unresolved ones. Suggested by Dathinel in Revivedx#1100. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What this changes
Follow-up to #1100, from @Dathinel's review there.
runtime/hle/input.ccallsact_cycle_live()(the Master Cycle check next tohorse_riding()), andtools/test_input_focus.cdoesn't define it. The test links with MSYS2's default linker, which drops the caller with--gc-sectionsand never notices. With lld it fails, because COFF lld reports undefined symbols before it discards sections:This adds a one-line stub next to the other
act_*stubs that says Link isn't on the Cycle. Of the two fixes suggested in #1100 it's the narrower one: unlike addingGC_TEST_UNDEFto this rule, it keeps the link strict for symbols the test does reach.How it was tested
Windows 11, MSYS2 UCRT64 (clang 23.1), on top of
testat 63b7255:make test-input-focuspasses with the default linker, and withCC="clang -fuse-ld=lld"fails with the error aboveinput focus checks passedwith bothSynthetic test only, no game files.
Checklist
testand opened againsttest🤖 Generated with Claude Code