[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug ld/25806] New: [ld] Search for input files relative to the current
From: |
i at maskray dot me |
Subject: |
[Bug ld/25806] New: [ld] Search for input files relative to the current linker script |
Date: |
Thu, 09 Apr 2020 04:17:50 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=25806
Bug ID: 25806
Summary: [ld] Search for input files relative to the current
linker script
Product: binutils
Version: 2.35 (HEAD)
Status: UNCONFIRMED
Severity: enhancement
Priority: P2
Component: ld
Assignee: unassigned at sourceware dot org
Reporter: i at maskray dot me
Target Milestone: ---
This is a feature request.
commit 51dee2fec3afad5e6fc9f78b8c1d8486ebf3a334 added the feature for gold.
// p/libm.a
INPUT(libm.a.1)
gold a.o p/libm.a
gold can find p/libm.a.1 even if -L p is not specified. gold names the
directory `extra_search_path` and prefers it over -L:
// If the filename is not absolute, we assume it is in the current
// directory *except* when:
// A) input_argument_->is_lib() is true; or
// B) input_argument_->extra_search_path() is not empty.
// In both cases, we look in extra_search_path + library_path to find
// the file location, rather than the current directory.
In theory, if we had this feature many years ago. For glibc libm.a
% cat /usr/lib/x86_64-linux-gnu/libm.a
/* GNU ld script
*/
OUTPUT_FORMAT(elf64-x86-64)
GROUP ( /usr/lib/x86_64-linux-gnu/libm-2.29.a
/usr/lib/x86_64-linux-gnu/libmvec.a )
We can simplify the script to:
GROUP(libm-2.29.a libmvec.a)
--
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 <=
- [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/09
- [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