[PATCH] Update RPATH to make loading libjawt possible
Andrew Haley
aph at redhat.com
Thu Aug 9 13:58:20 UTC 2012
On 08/09/2012 01:39 PM, Kumar Srinivasan wrote:
>> 2. This patch uses RPATH (and not RUNPATH). This makes it impossible to
>> > use LD_LIBRARY_PATH 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 LD_LIBRARY_PATH 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
> LD_LIBRARY_PATH 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.
More information about the build-dev
mailing list