bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug gold/13764] New: gold doesn't take the LD_RUN_PATH environment vari


From: vincent-srcware at vinc17 dot net
Subject: [Bug gold/13764] New: gold doesn't take the LD_RUN_PATH environment variable into account
Date: Mon, 27 Feb 2012 14:28:05 +0000

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: address@hidden
        ReportedBy: address@hidden
                CC: address@hidden
    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.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]