aboutsummaryrefslogtreecommitdiff
path: root/ld/ldmain.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/ldmain.c
parentc646b02fdcae5f37bd88f33a0c4683ef13ad5c82 (diff)
downloadgdb-fb47deda560b754008c35b5ec13fe02ef0593019.zip
gdb-fb47deda560b754008c35b5ec13fe02ef0593019.tar.gz
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/ldmain.c')
-rw-r--r--ld/ldmain.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ld/ldmain.c b/ld/ldmain.c
index 29ef77f..2f15ba7 100644
--- a/ld/ldmain.c
+++ b/ld/ldmain.c
@@ -800,6 +800,7 @@ add_archive_element (struct bfd_link_info *info,
input = (lang_input_statement_type *)
xcalloc (1, sizeof (lang_input_statement_type));
+ input->header.type = lang_input_statement_enum;
input->filename = abfd->filename;
input->local_sym_name = abfd->filename;
input->the_bfd = abfd;