This is the mail archive of the mailing list for the binutils project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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


	* (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/ (script_test_15): New test.
	* testsuite/ 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.

Attachment: gold-INPUT-and-GROUP.patch.txt
Description: gold-INPUT-and-GROUP.patch.txt

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]