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.
This commit is contained in:
parent
c646b02fdc
commit
fb47deda56
@ -1,3 +1,9 @@
|
||||
2016-10-31 Thomas Preud'homme <thomas.preudhomme@arm.com>
|
||||
|
||||
* ldmain.c (add_archive_element): Initialize input->header.type.
|
||||
* plugin.c (plugin_maybe_claim): Assert the statement is an input
|
||||
statement.
|
||||
|
||||
2016-10-15 Alan Modra <amodra@gmail.com>
|
||||
|
||||
* emultempl/spu_ovl.o_c: Regenerate.
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user