RFR: JDK-8198859 Use elfedit to silence linker warnings on solaris

Tim Bell tim.bell at oracle.com
Thu Mar 1 16:32:31 UTC 2018


Magnus:

> Solaris builds have always produced a lot of warnings when linking, like
> this:
>
> ld: fatal: symbol '__JvmOffsets' has differing types:
>      (file
> /export/home/magnusi/hg/sandbox-cflags/build/solaris-sparcv9/hotspot/variant-server/libjvm/objs/JvmOffsets.o
> type=OBJT; file
> /export/home/magnusi/hg/sandbox-cflags/build/solaris-sparcv9/hotspot/variant-server/libjvm/objs/dtrace_jhelper.o
> type=FUNC);
>
> This is due to an unresolved bug in dtrace. This bug has been reported
> on the dtrace team in 2014, but no solution have been coming forth. :-(
> However, I just discovered that we can actually use elfedit to fix the
> type of the fields that the linker is complaining about on
> $(DTRACE_JHELPER_OBJ).
>
> That will make the linker quiet.
>
> Bug: https://bugs.openjdk.java.net/browse/JDK-8198859
> WebRev:
> http://cr.openjdk.java.net/~ihse/JDK-8198859-dtrace-warnings-workaround/webrev.01

Looks good.

Tim




More information about the build-dev mailing list