You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
when I try to build a plugin containing circl like so
go build -buildmode=plugin
I get:
asm: fp_amd64.s:68: when dynamic linking, R15 is clobbered by a global variable access and is used here: 00215 (....l/vendor/github.com/cloudflare/circl/math/fp25519/fp_amd64.s:68) MULXQ 24(SI), AX, R15
asm: assembly failed
I am sorry, but I have no idea on debugging this. I found similar issues which let me assume that some upstream change could be required. If you find time to look into this, I would really appreciate your help.
The text was updated successfully, but these errors were encountered:
So, now I did some research on this. This issue is that the R15 register cannot be used in assembly, when compiling in plugin mode. Therefore, replacing the R15 register by the DI register could do the trick, as also done here. Would that be an option for this codebase as well? If yes, I could file a PR.
Update, I have checked spots in which compilation does not succeed due to R15 register.
I am working on patching the code, and pretty close to have CIRCL compiling as a plugin.
Hi,
when I try to build a plugin containing circl like so
I get:
I am sorry, but I have no idea on debugging this. I found similar issues which let me assume that some upstream change could be required. If you find time to look into this, I would really appreciate your help.
The text was updated successfully, but these errors were encountered: