Skip to content
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

TOC pointer is not modified when calling functions under certain circumstances #111

Open
lephilousophe opened this issue Jul 25, 2021 · 0 comments

Comments

@lephilousophe
Copy link

When building ScummVM with binutils 2.22, some calls were issued directly instead of using an adjusting stub responsible of setting the correct TOC address in r2.
I couldn't identify the root cause of this bug nor commit in binutils fixed the bug but the build works perfectly using binutils 2.36.1.

There is only a patch to apply on PSL1GHT to make it align the got on a 256 bytes boundary instead of 8 because of commit bminor/binutils-gdb@a27e685fa0a6 in binutils.

I don't submit a PR for that because I didn't manage to have SPU build correctly with latest binutils.

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

No branches or pull requests

1 participant