Fix problem where __start_ and __stop_ section symbols do not honor version script.
authorCary Coutant <ccoutant@gmail.com>
Tue, 21 Jul 2015 23:10:05 +0000 (16:10 -0700)
committerCary Coutant <ccoutant@gmail.com>
Tue, 21 Jul 2015 23:10:05 +0000 (16:10 -0700)
commit5417c94d1a944d1a27f99240e5d62a6d7cd324f1
tree844c9db4f746ffff2921ed6e852733407062b72f
parentb8c6c5ef99ef8f07fcea1c777d5084dc6f7232e5
Fix problem where __start_ and __stop_ section symbols do not honor version script.

When creating the special __start_ and __stop_ section symbols, gold
does not check the version script to see if they should be local
instead of global.

2015-07-21  Cary Coutant  <ccoutant@gmail.com>

gold/
PR gold/18548
* symtab.cc (Symbol_table::do_define_in_output_data): Check for
forced local symbol even when oldsym != NULL.
(Symbol_table::do_define_in_output_segment): Likewise.
(Symbol_table::do_define_as_constant): Likewise.
gold/ChangeLog
gold/symtab.cc