[PATCH][gold] Place sections like ".rela.dyn" according to linker scripts.

Igor Kudrin ikudrin@accesssoftek.com
Fri Jul 1 18:04:00 GMT 2016


Hi,

ld places internally created sections, like ".rela.dyn", according to
output section descriptions in linker scripts even if input section
descriptions for these output sections do not contain the corresponding
patterns. I believe that gold should follow this behavior because it is
intended to be a drop-in replacement for ld.

What do you think?

Best regards,
Igor Kudrin

---
gold/ChangeLog

	* script-sections.cc
	(Sections_element::output_section_slot): New virtual method.
	(Output_section_definition::output_section_slot): Likewise.
	(Script_sections::output_section_name): Use output_section_slot
	to find a slot for internally created sections.
	* testsuite/Makefile.am (script_test_13): New test.
	* testsuite/Makefile.in: Regenerate.
	* testsuite/script_test_13.c: New test source file.
	* testsuite/script_test_13.sh: New test script.
	* testsuite/script_test_13.t: New test linker script.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: gold-reladyn-ordering.patch.txt
URL: <https://sourceware.org/pipermail/binutils/attachments/20160701/8cc15126/attachment.txt>


More information about the Binutils mailing list