aboutsummaryrefslogtreecommitdiff
path: root/ld/plugin.c
diff options
context:
space:
mode:
authorThomas Preud'homme <thomas.preudhomme@arm.com>2016-10-31 09:44:18 +0000
committerThomas Preud'homme <thomas.preudhomme@arm.com>2016-10-31 09:44:18 +0000
commitfb47deda560b754008c35b5ec13fe02ef0593019 (patch)
treecf2e18434831379d421121bfc7ed4d7177223433 /ld/plugin.c
parentc646b02fdcae5f37bd88f33a0c4683ef13ad5c82 (diff)
downloadfsf-binutils-gdb-fb47deda560b754008c35b5ec13fe02ef0593019.zip
fsf-binutils-gdb-fb47deda560b754008c35b5ec13fe02ef0593019.tar.gz
fsf-binutils-gdb-fb47deda560b754008c35b5ec13fe02ef0593019.tar.bz2
Initialize input statement created in add_archive_member
2016-10-31 Thomas Preud'homme <thomas.preudhomme@arm.com> ld/ * ldmain.c (add_archive_element): Initialize input->header.type. * plugin.c (plugin_maybe_claim): Assert the statement is an input statement.
Diffstat (limited to 'ld/plugin.c')
-rw-r--r--ld/plugin.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ld/plugin.c b/ld/plugin.c
index 80d22e2..8042940 100644
--- a/ld/plugin.c
+++ b/ld/plugin.c
@@ -1195,6 +1195,7 @@ plugin_object_p (bfd *ibfd)
void
plugin_maybe_claim (lang_input_statement_type *entry)
{
+ ASSERT (entry->header.type == lang_input_statement_enum);
if (plugin_object_p (entry->the_bfd))
{
bfd *abfd = entry->the_bfd->plugin_dummy_bfd;