PeernetOfficial / core

Core library. Use this to create a new Peernet application.
MIT License
36 stars 5 forks source link

64-bit misalignment problem on ARM architecture #88

Closed Kleissner closed 2 years ago

Kleissner commented 2 years ago

The PeerInfo structure has 64-bit (and potential 32-bit and 16-bit) values misaligned. This could be fixed by rearranging them, or by using substructs? To be verified.

The PR https://github.com/PeernetOfficial/core/pull/86 is related to this problem.

Kleissner commented 2 years ago

Related issues: https://github.com/golang/go/issues/599 and https://github.com/golang/go/issues/36606

One solution is to just document target platforms and mark ARM 32-bit and not supported.