This is the mail archive of the binutils@sourceware.org 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] |
Hi, The current version of gold uses names of described output sections to find places where to put orphan sections. If the sections in the linker script have different names, gold fails to find the right place for orphans. This patch addresses the issue by analyzing attributes of existing section if they have unfamiliar names. Best regards, Igor Kudrin --- gold/ChangeLog * script-sections.cc (Orphan_section_placement::find_place_index): New method. (Orphan_section_placement::output_section_init): Use method find_place_index() if we can't find the place by name. (Orphan_section_placement::find_place): Use find_place_index() to initialize variable index. * testsuite/Makefile.am (script_test_15): New test. * testsuite/Makefile.in: Regenerate. * testsuite/script_test_16.s: New test source file. * testsuite/script_test_16.sh: New test script. * testsuite/script_test_16.t: New test linker script.
Attachment:
gold-place-orphans-by-props.patch.txt
Description: gold-place-orphans-by-props.patch.txt
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |