[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.
- [Bug ld/25806] New: [ld] Search for input files relative to the current linker script, i at maskray dot me, 2020/04/09
- [Bug ld/25806] [ld] Search for input files relative to the current linker script, i at maskray dot me, 2020/04/09
- [Bug ld/25806] [ld] Search for input files relative to the current linker script,
i at maskray dot me <=
- [Bug ld/25806] [ld] Search for input files relative to the current linker script, nickc at redhat dot com, 2020/04/09
- [Bug ld/25806] [ld] Search for input files relative to the current linker script, i at maskray dot me, 2020/04/09
- [Bug ld/25806] [ld] Search for input files relative to the current linker script, i at maskray dot me, 2020/04/20
- [Bug ld/25806] [ld] Search for input files relative to the current linker script, cvs-commit at gcc dot gnu.org, 2020/04/22
- [Bug ld/25806] [ld] Search for input files relative to the current linker script, nickc at redhat dot com, 2020/04/22