RFR 8202210: jlink uses little-endian for big-endian cross-compilation targets

Alan Bateman Alan.Bateman at oracle.com
Wed Apr 25 10:08:14 UTC 2018



On 25/04/2018 10:06, Aleksey Shipilev wrote:
> Hi,
>
> I was doing the exercise of cross-compiling from x86_64 to most OpenJDK arches, and we have
> discovered the bug with endianness. Right now, compiling big-endian s390x target on little-endian
> x86_64 host produces the modules blob that cannot be read on real s390x.
It should still work, just less efficiently.

In any case, specifying the endianness to jlink in your update to 
Images.gmk looks right.

-Alan



More information about the build-dev mailing list