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

Save R15 before global access #255

Merged
merged 4 commits into from
Jun 20, 2024

Conversation

TotallyGamerJet
Copy link
Collaborator

Closes #254

…iable

In -buildmode=plugin R15 is used when accessing global variables but we need to save it since we are actually called from C code. We save the R15 register before we access any globals.
Copy link
Member

@hajimehoshi hajimehoshi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks!

@@ -39,6 +39,12 @@ jobs:
run: |
go vet -v ./...

- name: go build plugin
if: runner.os == 'Linux'
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

plugin should work not only on Linux but also macOS and FreeBSD. Is there a reason why we specify Linux here?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I didn’t think it was necessary since they all behave the same but I can to be safe

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's do this if it is easy.

Copy link
Member

@hajimehoshi hajimehoshi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Still LGTM

@TotallyGamerJet TotallyGamerJet merged commit 573eba0 into ebitengine:main Jun 20, 2024
20 checks passed
@TotallyGamerJet TotallyGamerJet deleted the issue-254_clobbering branch June 20, 2024 02:45
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.

Dynamic linking error on amd64
2 participants