]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit - ld/ChangeLog-2015
Relative DT_RPATH/DT_RUNPATH vs. sysroot capable ld.
authorAlan Modra <amodra@gmail.com>
Thu, 24 Sep 2015 03:43:57 +0000 (13:13 +0930)
committerAlan Modra <amodra@gmail.com>
Thu, 24 Sep 2015 13:05:04 +0000 (22:35 +0930)
commit3074964fcfff45aef4584b84550eeef84f902fc4
tree64869957c144cf643bfcee734e9e08a84682e83d
parent938d3bf25b2f5bc1a9d955d86070e8bbee127f52
Relative DT_RPATH/DT_RUNPATH vs. sysroot capable ld.

This fixes two problems.  First, the --sysroot option wasn't available
with a ld configured without --with-sysroot, a historical accident.
This led to people configuring binutils with --with-sysroot=/ in order
to enable sysroot support, which exposes a case where ld wrongly
prepends the sysroot to a relative path.

PR ld/18992
* ldmain.c (main): Always enable --sysroot.
* emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Don't
prepend sysroot to relative rpath/runpath.
ld/ChangeLog
ld/emultempl/elf32.em
ld/ldmain.c