bug-binutils
[Top][All Lists]
Advanced

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

[Bug ld/25806] [ld] Search for input files relative to the current linke


From: nickc at redhat dot com
Subject: [Bug ld/25806] [ld] Search for input files relative to the current linker script
Date: Thu, 09 Apr 2020 10:20:54 +0000

https://sourceware.org/bugzilla/show_bug.cgi?id=25806

Nick Clifton <nickc at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |nickc at redhat dot com

--- Comment #2 from Nick Clifton <nickc at redhat dot com> ---
Hi Fangrui,

> gold a.o p/libm.a
> 
> gold can find p/libm.a.1 even if -L p is not specified.

A couple of questions:

1. Does the extra search path persist beyond the end of the linker
   script ?  For example, using your sample script:

      % ld p/libm.a foo.o

   Should the linker load p/foo.o ?  (If it exists, of course).


2. Is this feature restricted to libraries, or should it also affect
   object files ?  For example:

    % cat p/libm.a
    INPUT(libm.a.1)
    INPUT(foo.o)

    % ld p/libm.a

   Is this expected to load p/foo.o ?

Cheers
  Nick

-- 
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]