[patch] add zero support for x86_64-linux-gnux32 target
Matthias Klose
doko at ubuntu.com
Mon Sep 5 12:03:28 UTC 2016
The attached patch adds support for building zero for the x86_64-linux-gnux32
target, having changes in the build system, hotspot and jdk.
- the build system currently only derives the target from
the cpu in PLATFORM_EXTRACT_VARS_FROM_CPU; that is not enough
for the new target, which only differs by the ending of the
triplet. However the $host macro should be available anywhere.
- the hotspot part just handles the new "cpu"
- GensrcX11Wrappers.gmk assumes that there is a black/white
decision about -m32/-m64. The patch works around it. However
the real patch should be to get these flags from the build
system, and not hardcode itself.
- the sysctl system call is unsupported in the x32 kernel, and
just the include leads to a build error. From my point of view
the header is not needed. I had successful builds on all other
targets without including it. If you want to keep the include,
then it should be guarded with
#if !(defined(_ILP32) && defined(__x86_64__))
Matthias
-------------- next part --------------
A non-text attachment was scrubbed...
Name: zero-x32.diff
Type: text/x-diff
Size: 2767 bytes
Desc: not available
URL: <http://mail.openjdk.java.net/pipermail/jdk9-dev/attachments/20160905/3197a212/zero-x32.diff>
More information about the jdk9-dev
mailing list