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

crypto/bn256/cloudflare: fix asm for dynamic linking #24476

Merged
merged 1 commit into from
Mar 8, 2022

Conversation

uji
Copy link
Contributor

@uji uji commented Feb 27, 2022

when dynamic linking, R15 is clobbered by a global variable access and is used here; avoid them.(go1.17~)

refs

Fixes: #24439

when dynamic linking, R15 is clobbered by a global variable access and is used here; avoid them.

Fixes: ethereum#24439
@uji uji marked this pull request as ready for review February 27, 2022 14:29
@karalabe
Copy link
Member

karalabe commented Mar 1, 2022

This should be fixed upstream first in https://github.com/cloudflare/bn256. We can pull the changes afterwards, but it's important to keep it consistent with upstream.

@uji
Copy link
Contributor Author

uji commented Mar 1, 2022

Sent pull request to upstream repository.
cloudflare/bn256#25

@uji
Copy link
Contributor Author

uji commented Mar 4, 2022

Pull request of upstream was merged.
cloudflare/bn256#25

Can merge this pull request?
Is there anything that i need to do?

@fjl
Copy link
Contributor

fjl commented Mar 8, 2022

I can confirm this change matches the change submitted upstream.

@fjl fjl added this to the 1.10.17 milestone Mar 8, 2022
@fjl fjl merged commit ec64358 into ethereum:master Mar 8, 2022
@fjl fjl removed the status:triage label Mar 8, 2022
sidhujag pushed a commit to syscoin/go-ethereum that referenced this pull request Mar 9, 2022
When using -buildmode=shared, R15 is clobbered by a global variable
access; use a different register instead.

Fixes: ethereum#24439
JacekGlen pushed a commit to JacekGlen/go-ethereum that referenced this pull request May 26, 2022
When using -buildmode=shared, R15 is clobbered by a global variable
access; use a different register instead.

Fixes: ethereum#24439
cp-wjhan pushed a commit to cp-yoonjin/go-wemix that referenced this pull request Nov 16, 2022
When using -buildmode=shared, R15 is clobbered by a global variable
access; use a different register instead.

Fixes: ethereum#24439
wgr523 pushed a commit to XinFinOrg/XDPoSChain that referenced this pull request Jan 18, 2024
When using -buildmode=shared, R15 is clobbered by a global variable
access; use a different register instead.

Fixes: ethereum#24439
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.

crypto/bn256: compile error
5 participants