When evaluating a ternary operator in a linker script, copy the symbol flags.
authorSimon Dardis <Simon.Dardis@imgtec.com>
Thu, 15 Oct 2015 12:28:27 +0000 (13:28 +0100)
committerNick Clifton <nickc@redhat.com>
Thu, 15 Oct 2015 12:28:27 +0000 (13:28 +0100)
commit1fb80d6d50f3c0adc46ff584af26583b980be834
treee513862b31448dfec69fd84aa2afd6c38196e7f5
parentb32a5c16f100c53fd9c0c22464f863eeeec6087a
When evaluating a ternary operator in a linker script, copy the symbol flags.

* ld/ldexp.c: (try_copy_symbol_flags): New. Factored out from...
(exp_fold_tree_1): Here.  Cope with ternary operator in
assignments.  Use new helper.
ld/ChangeLog
ld/ldexp.c