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: i at maskray dot me
Subject: [Bug ld/25806] [ld] Search for input files relative to the current linker script
Date: Thu, 09 Apr 2020 06:49:58 +0000

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

--- Comment #1 from Fangrui Song <i at maskray dot me> ---
I made some investigations.

Notation: CWD => current working directory
For a relative pathname (not absolute path or -l) in INPUT() or GROUP():

* GNU ld searches in CWD then in -L
* gold searches in the parent directory of the current linker script then in
-L.
  It does not fall back to CWD.

I am going to change the search order of lld

* the parent directory of the current linker script
* next in CWD
* then in -L.

https://reviews.llvm.org/D77779

libstdc++.a currently includes object files from libsupc++. It could use a
linker script as an alternative if GNU ld had this feature... Though there is
probably no point to do this

For libc++.a, it probably makes more sense because several C++ ABI libraries
can be plugged in.

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