@GrahamB
The issue is because we call a C function which returns data with different endinaness depending on the architecture. The library right now doesn't run on any x86 based Linux, but I just wanted to be thourough now in case we ever do in the future.
Why not just writing the lib function in a way that it always uses the same endianess on all architectures ? (see ntoh(), hton()).
Linux Embedded / Kernel Hacker / BSP / Driver development / Systems engineering