This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: [PATCH][gold] Extend support of INPUT and GROUP commands to linker scripts added with -T.
- From: Igor Kudrin <ikudrin at accesssoftek dot com>
- To: "binutils at sourceware dot org" <binutils at sourceware dot org>, "\"Cary Coutant\"" <ccoutant at gmail dot com>
- Date: Mon, 15 Aug 2016 06:36:39 +0000
- Subject: Re: [PATCH][gold] Extend support of INPUT and GROUP commands to linker scripts added with -T.
- Authentication-results: sourceware.org; auth=none
- References: <1467464190101.59701@accesssoftek.com>
Ping.
________________________________________
From: binutils-owner@sourceware.org <binutils-owner@sourceware.org> on behalf of Igor Kudrin <ikudrin@accesssoftek.com>
Sent: Saturday, July 2, 2016 6:56 PM
To: binutils@sourceware.org; "Cary Coutant"
Subject: [PATCH][gold] Extend support of INPUT and GROUP commands to linker scripts added with -T.
Hi,
As far as I can see, these commands are already supported for linker
scripts mentioned as input files on the command line. This patch
extends the support to linker scripts passed as arguments to
the -T option.
Best regards,
Igor Kudrin
---
gold/ChangeLog
* script.cc (read_script_file): Pass the current in_group state
to the created closure.
(script_add_file): Use inputs() from command_line() if it exists.
(script_add_library): Likewise.
(script_start_group): Likewise.
(script_end_group): Likewise.
* testsuite/Makefile.am (script_test_15): New test.
* testsuite/Makefile.in: Regenerate.
* testsuite/script_test_15.h: New test header file.
* testsuite/script_test_15.t: New test linker script.
* testsuite/script_test_15a.c: New test source file.
* testsuite/script_test_15b.c: Likewise.
* testsuite/script_test_15c.c: Likewise.
* testsuite/script_test_15d.c: Likewise.