Skip to content

Handle STB_LOCAL global variables #20

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
elfmaster opened this issue May 25, 2023 · 1 comment
Open

Handle STB_LOCAL global variables #20

elfmaster opened this issue May 25, 2023 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@elfmaster
Copy link
Contributor

Currently we cannot patch global variables that are locally binded. This should only take an hour or so to handle.

int foo(void)
{
      static int data_var = 5;
      printf("%d\n", data_var);
}
@elfmaster elfmaster self-assigned this May 25, 2023
@elfmaster
Copy link
Contributor Author

STB_LOCAL patching now works, as long as there are not optimizations that use jmp's instead of calls to the static function. This ticket will remain open at 50% done.

@elfmaster elfmaster added the enhancement New feature or request label Mar 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant