Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8326891 Prefer RPATH over RUNPATH for $ORIGIN rpaths in internal JDK binaries
  3. JDK-8327055

Release Note: Native Executables and Libraries on Linux Use `RPATH` Instead of `RUNPATH`

XMLWordPrintable

    • Icon: Sub-task Sub-task
    • Resolution: Delivered
    • Icon: P4 P4
    • 23
    • 8u421, 11.0.24-oracle, 17.0.12-oracle, 21.0.4-oracle, 22.0.2, 23
    • infrastructure

        Native executables and libraries on Linux have switched to using `RPATH` instead of `RUNPATH` in this release.

        JDK native executables and libraries use embedded runtime search paths to locate other internal JDK native libraries. On Linux these can be defined as either `RPATH` or `RUNPATH`. The main difference is that the dynamic linker considers `RPATH` before the `LD_LIBRARY_PATH` environment variable, while `RUNPATH` is only considered after `LD_LIBRARY_PATH`.

        By making the change to using `RPATH`, it is no longer possible to replace JDK internal native libraries using `LD_LIBRARY_PATH`.

              erikj Erik Joelsson
              erikj Erik Joelsson
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: