Add paranoia checks to .PPC.EMB.apuinfo merging code.
unsigned long length;
const char * error_message = NULL;
+ if (link_info == NULL)
+ return;
+
/* Scan the input bfds, looking for apuinfo sections. */
num_input_sections = 0;
output_section_size = 0;
asection * asec;
bfd_byte * contents ATTRIBUTE_UNUSED;
{
- return strcmp (asec->name, APUINFO_SECTION_NAME) == 0;
+ return apuinfo_list_length () && strcmp (asec->name, APUINFO_SECTION_NAME) == 0;
}
if (asec == NULL)
return;
+ if (apuinfo_list_length () == 0)
+ return;
+
length = asec->_raw_size;
if (length < 20)
return;
2002-12-03 Nick Clifton <nickc@redhat.com>
* config/tc-ppc.c (ppc_cleanup): Do not set SEC_MERGE flag on
- .PPC.EMB>apuinfo sections.
+ .PPC.EMB.apuinfo sections.
2002-12-03 Richard Henderson <rth@redhat.com>