Fix ld uninitialized read of script ASSERT data structure
authorAlan Modra <amodra@gmail.com>
Tue, 7 Mar 2017 01:50:00 +0000 (12:20 +1030)
committerAlan Modra <amodra@gmail.com>
Tue, 7 Mar 2017 02:03:28 +0000 (12:33 +1030)
commitd933941d6c5ce5b2dcaaa869919b6f3de06b725d
treef3d3e6736ee92271352158262f235f0d1ef26a93
parentb1b07054c08eea65ba8d1a9f771796d686f337e5
Fix ld uninitialized read of script ASSERT data structure

lang_assignment_statement serves both assignments and asserts.

* ldlang.c (open_input_bfds): Check that lang_assignment_statement
is not an assert before referencing defsym.
ld/ChangeLog
ld/ldlang.c