http://sourceware.org/bugzilla/show_bug.cgi?id=13764
Bug #: 13764
Summary: gold doesn't take the LD_RUN_PATH environment variable
into account
Product: binutils
Version: 2.22
Status: NEW
Severity: normal
Priority: P2
Component: gold
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected]
Classification: Unclassified
Created attachment 6251
--> http://sourceware.org/bugzilla/attachment.cgi?id=6251
patch to take he LD_RUN_PATH environment variable into account
Contrary to the conventional linker, gold doesn't take the LD_RUN_PATH
environment variable into account (default runpath). I've reported a bug
against Debian here:
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=660813
and Jonathan Nieder posted a patch, which I've tested and solves the problem
I've reported. It is attached.
The ld(1) man page should also mention it. The old ld(1) man page says:
* For -rpath=dir: If -rpath is not used when linking an ELF executable, the
contents of the environment variable "LD_RUN_PATH" will be used if it is
defined.
* For -rpath-link=dir: On an ELF system, for native linkers, if the -rpath and
-rpath-link options were not used, search the contents of the environment
variable "LD_RUN_PATH".
But it could be better to describe it in an ENVIRONMENT section, where
environment variables are usually described.
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
_______________________________________________
bug-binutils mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/bug-binutils