kilic / bls12-381

High-speed BLS12-381 implementation in Go
Apache License 2.0
124 stars 47 forks source link

When dynamic linking, R15 may be clobbered by a global variable access #42

Open ale-linux opened 9 months ago

ale-linux commented 9 months ago

The problem can be reproduced by running

go build -linkshared ./...

Output:

asm: fp_arithmetic_x86.s:1427: when dynamic linking, R15 is clobbered by a global variable access and is used here: 00895 (src/github.com/kilic/bls12-381/fp_arithmetic_x86.s:1427)  CMOVQCC R12, R15
asm: fp_arithmetic_x86.s:2142: when dynamic linking, R15 is clobbered by a global variable access and is used here: 01198 (src/github.com/kilic/bls12-381/fp_arithmetic_x86.s:2142)  CMOVQCC R8, R15