Skip to content

Conversation

@bdash
Copy link
Contributor

@bdash bdash commented May 16, 2025

Handle the case where the class field of the category is a direct reference to an external symbol via a bind fixup. In that case, the pointer's value when read from the view is 0. To determine the class name it is necessary to look up the relocation for the pointer's address and parse the class name from the symbol's name.

@bdash bdash force-pushed the objc-category-name-bind-fixup branch 2 times, most recently from 40479c1 to e4d9f80 Compare May 22, 2025 23:50
@plafosse plafosse requested a review from 0cyn May 27, 2025 12:31
@plafosse plafosse added this to the Helion milestone May 27, 2025
@bdash bdash force-pushed the objc-category-name-bind-fixup branch from e4d9f80 to 9debce0 Compare May 30, 2025 00:30
…esolved

Handle the case where the `class` field of the category is a direct
reference to an external symbol via a bind fixup. In that case, the
pointer's value when read from the view is 0. To determine the class
name it is necessary to look up the relocation for the pointer's address
and parse the class name from the symbol's name.
@0cyn 0cyn force-pushed the objc-category-name-bind-fixup branch from 9debce0 to fa8ecc1 Compare May 30, 2025 16:12
@0cyn 0cyn merged commit fa8ecc1 into Vector35:dev May 30, 2025
1 check passed
@0cyn
Copy link
Member

0cyn commented May 30, 2025

Thank you for the PR! Merged with fa8ecc1, this will be available in versions >= dev 5.1.7535

@bdash bdash deleted the objc-category-name-bind-fixup branch July 11, 2025 02:26
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.

3 participants