[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug ld/30374] New: ld: Add --remap-inputs-file= to remap input files
From: |
i at maskray dot me |
Subject: |
[Bug ld/30374] New: ld: Add --remap-inputs-file= to remap input files |
Date: |
Fri, 21 Apr 2023 00:05:09 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=30374
Bug ID: 30374
Summary: ld: Add --remap-inputs-file= to remap input files
Product: binutils
Version: unspecified
Status: NEW
Severity: normal
Priority: P2
Component: ld
Assignee: unassigned at sourceware dot org
Reporter: i at maskray dot me
Target Milestone: ---
Hello! I'm considering an option in ld.lld to replace or remove input files
with glob patterns. https://reviews.llvm.org/D148859
--remap-inputs-file= can be specified multiple times, each naming a
remap file that contains from-glob<tab>to-file lines or #-led comments, e.g.
aa.o a.o
b?.[b]c b.o
cc.a c.a
d*.so d.so
## Use /dev/null to indicate an input file which should be ignored. /dev/null
is treated as an empty linker script.
empty /dev/null
This option can be used to:
* replace an input file. E.g. "*/libz.so\texp/libz.so" can replace a resolved
-lz without updating the input file list or (if used) a response file. When
debugging an application where a bug is isolated to one single input file, this
option gives an convenient way to test fixes.
* remove an input file with /dev/null (changed to NUL on Windows), e.g.
"a.o\t/dev/null". A build system may add unneeded dependencies. This option
gives an convenient way to test the result removing some inputs.
bash/zsh process substitution is handy for specifying a pattern without using
a remap file, e.g. --remap-inputs-file=<(printf 'a.o\taa.o')
--
You are receiving this mail because:
You are on the CC list for the bug.
- [Bug ld/30374] New: ld: Add --remap-inputs-file= to remap input files,
i at maskray dot me <=