[PATCH] Update RPATH to make loading libjawt possible (original) (raw)
Andrew Haley aph at redhat.com
Thu Aug 9 13:58:20 UTC 2012
- Previous message (by thread): [PATCH] Update RPATH to make loading libjawt possible
- Next message (by thread): hg: jdk8/build/langtools: Added tag jdk8-b50 for changeset b2d8a270f5f2
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On 08/09/2012 01:39 PM, Kumar Srinivasan wrote:
2. This patch uses RPATH (and not RUNPATH). This makes it impossible to > use LDLIBRARYPATH to override the linker path. I don't see any > potential dangerous effects (pretty much all libraries in the have an > RPATH), and I suspect it's even intentional (so JDK6 can exec JDK7 with > an LDLIBRARYPATH set and things will continue working). Does OpenJDK > support platforms with RUNPATH (-Wl,--enable-new-dtags) ? Yes if jdk6 is used to exec jdk7+, the launcher will set the LDLIBRARYPATH to protects itself from jdk6's LLP, and exec itself. Please see http://hg.openjdk.java.net/jdk7u/jdk7u-dev/jdk/rev/d8dfd1a0bd8d I don't know what --enable-new-dtags is and what it does.
RPATH has been deprecated for more than ten years. See man ld,so(8):
o (ELF only) Using the directories specified in the
DT_RPATH dynamic section attribute of the binary if
present and DT_RUNPATH attribute does not exist. Use
of DT_RPATH is deprecated.
DT_RUNPATH is the modern equivalent, and it's what you get if you use --enable-new-dtags .
Andrew.
- Previous message (by thread): [PATCH] Update RPATH to make loading libjawt possible
- Next message (by thread): hg: jdk8/build/langtools: Added tag jdk8-b50 for changeset b2d8a270f5f2
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]