[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug ld/30374] ld: Add --remap-inputs-file= to remap input files
From: |
nickc at redhat dot com |
Subject: |
[Bug ld/30374] ld: Add --remap-inputs-file= to remap input files |
Date: |
Mon, 05 Jun 2023 15:17:10 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=30374
Nick Clifton <nickc at redhat dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |nickc at redhat dot com
Assignee|unassigned at sourceware dot org |nickc at redhat dot com
Status|NEW |ASSIGNED
--- Comment #2 from Nick Clifton <nickc at redhat dot com> ---
Created attachment 14918
--> https://sourceware.org/bugzilla/attachment.cgi?id=14918&action=edit
Proposed patch
Here is a possible implementation of the feature. Please let me know what you
think.
One thing that stands out to me as maybe being an issue is the fact that the
new option is position dependent - it only affects filenames that come after it
on the command line. (Much like the -L option). So:
ld foo.o --remap-inputs=foo.o=bar.o
will not rename foo.o to bar.o, whereas:
ld --remap-inputs=foo.o=bar.o foo.o
will perform the renaming.
One other thing: I wondered if we ought to accept the "@file" syntax in the
--remap-inputs option, as a synonym for --remap-inputs-file. What do you think
?
--
You are receiving this mail because:
You are on the CC list for the bug.
- [Bug ld/30374] ld: Add --remap-inputs-file= to remap input files,
nickc at redhat dot com <=