[PATCH][gold] Extend support of INPUT and GROUP commands to linker scripts added with -T.

Igor Kudrin ikudrin@accesssoftek.com
Sat Jul 2 12:56:00 GMT 2016


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.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: gold-INPUT-and-GROUP.patch.txt
URL: <https://sourceware.org/pipermail/binutils/attachments/20160702/6011eb08/attachment.txt>


More information about the Binutils mailing list