[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: |
cvs-commit at gcc dot gnu.org |
Subject: |
[Bug ld/30374] ld: Add --remap-inputs-file= to remap input files |
Date: |
Wed, 14 Jun 2023 12:40:04 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=30374
--- Comment #3 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot
gnu.org> ---
The master branch has been updated by Nick Clifton <nickc@sourceware.org>:
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=fb221fba1a5eb05355f248d6aa1e3ab4316899fd
commit fb221fba1a5eb05355f248d6aa1e3ab4316899fd
Author: Nick Clifton <nickc@redhat.com>
Date: Wed Jun 14 13:39:03 2023 +0100
Add --remap-inputs option to the BFD linker.
PR 30374
* ldfile.c (struct input_remap): New structure. (ldfile_add_remap): New
function. (ldfile_remap_input_free): New function. (ldfile_add_remap_file): New
function. (ldfile_possibly_remap_input): New function.
(ldfile_print_input_remaps): New function. * ldfile.h: Add prototypes for new
functions.
* ldlang.c (new_afile): Call ldfile_possibly_remap_input. (lang_finish):
Call ldfile_remap_input_free. (lang_map): Call ldfile_print_input_remaps.
* ldlex.h (OPTION_REMAP_INPUTS, OPTION_REMAP_INPUTS_FILE): Define.
* lexsup.c (ld_options): Add --remap-inputs-file and --remap-inputs.
(parse_args): Handle new options.
* NEWS: Mention the new feature.
* ld.texi: Document the new options.
* testsuite/ld-misc/input-remap.exp: New test driver.
* testsuite/ld-misc/remaps.r: New file: Expected linker output.
* testsuite/ld-misc/remaps.txt: New file. Input remaps file.
--
You are receiving this mail because:
You are on the CC list for the bug.