When using linker scripts, place linker-generated sections by the output section...
authorCary Coutant <ccoutant@gmail.com>
Tue, 13 Dec 2016 02:51:29 +0000 (18:51 -0800)
committerCary Coutant <ccoutant@gmail.com>
Tue, 13 Dec 2016 02:52:44 +0000 (18:52 -0800)
commitbfbf34de2f27672282d4fa4c0916cc41890dcc6c
tree8000687927ea911cc49c035dce75659aab3bbbdf
parentd81222d3863037a90e0402cf438f7e45600feea2
When using linker scripts, place linker-generated sections by the output section name.

2016-12-12  Igor Kudrin  <ikudrin@accesssoftek.com>
    Cary Coutant  <ccoutant@gmail.com>

gold/
PR gold/14676
* script-sections.cc (Output_section_definition::output_section_name):
For linker-generated sections, compare with output section name.
* testsuite/Makefile.am (script_test_13): New test.
* testsuite/Makefile.in: Regenerate.
* testsuite/script_test_13.c: New source file.
* testsuite/script_test_13.sh: New script.
* testsuite/script_test_13.t: New linker script.
gold/ChangeLog
gold/script-sections.cc
gold/testsuite/Makefile.am
gold/testsuite/Makefile.in
gold/testsuite/script_test_13.c [new file with mode: 0644]
gold/testsuite/script_test_13.sh [new file with mode: 0755]
gold/testsuite/script_test_13.t [new file with mode: 0644]