+2017-12-01 Tobias Ulmer <tobiasu@tmux.org>
+
+ * ldwrite.c (build_link_order): Check return value of all
+ bfd_new_link_order calls.
+
2017-12-01 Alan Modra <amodra@gmail.com>
* testsuite/ld-elfweak/alias.c,
link_order = bfd_new_link_order (link_info.output_bfd,
output_section);
+ if (link_order == NULL)
+ einfo (_("%P%F: bfd_new_link_order failed\n"));
if ((i->flags & SEC_NEVER_LOAD) != 0
&& (i->flags & SEC_DEBUGGING) == 0)
link_order = bfd_new_link_order (link_info.output_bfd,
output_section);
+ if (link_order == NULL)
+ einfo (_("%P%F: bfd_new_link_order failed\n"));
link_order->type = bfd_data_link_order;
link_order->size = statement->padding_statement.size;
link_order->offset = statement->padding_statement.output_offset;