RFR(xs): 8171408: [aix] TOC overflow when linking the gtest libjvm.so

Thomas Stüfe thomas.stuefe at gmail.com
Mon Dec 19 13:28:04 UTC 2016


On Sun, Dec 18, 2016 at 1:50 PM, Thomas Stüfe <thomas.stuefe at gmail.com>
wrote:

> Hi all,
>
> please take a look at this small fix. In short, on AIX when linking the
> gtest version of libjvm.so, the TOC overflows.
>
> So the gtest libjvm.so must be linked with -bbigtoc, in contrast to the
> regular libjvm.so, which has no problems and can keep using a small TOC.
>
> Also, I compile all gtest objects with -qpic=large. Note that this only
> affects the gtest objects. The regular objects - which the gtest libjvm.so
> shares with the regular libjvm.so - I left at -qpic[=small]. This means we
> pay a bit of a performance overhead in the gtest libjvm.so but leave the
> regular libjvm.so at its optimal linker settings.
>
> Issue:
> https://bugs.openjdk.java.net/browse/JDK-8171408
>
> Webrev:
> http://cr.openjdk.java.net/~stuefe/webrevs/8171408-aix-
> TOC-overflow-when-linking-the-gtest-libjvm/webrev.00/
>
> (Hope the webrev link works, the webserver is still down).
>
> Kind Regards, Thomas
>
>
>
Because cr.openjdk.java.net is still down, here the zipped webrev as
attachment.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openjdk.java.net/pipermail/ppc-aix-port-dev/attachments/20161219/79e3aedf/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: webrev.zip
Type: application/zip
Size: 35601 bytes
Desc: not available
URL: <http://mail.openjdk.java.net/pipermail/ppc-aix-port-dev/attachments/20161219/79e3aedf/webrev-0001.zip>


More information about the ppc-aix-port-dev mailing list