Pass %E to einfo when bfd_section == NULL

Report BFD error When bfd_section == NULL in init_os.

	* ldlang.c (init_os): Pass %E to einfo when bfd_section == NULL.
This commit is contained in:
H.J. Lu 2016-05-04 19:41:34 -07:00
parent d286e29293
commit d4758f96f7
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2016-05-04 H.J. Lu <hongjiu.lu@intel.com>
* ldlang.c (init_os): Pass %E to einfo when bfd_section == NULL.
2016-05-04 Maciej W. Rozycki <macro@imgtec.com>
* testsuite/ld-unique/unique.d: New test.

View File

@ -2204,7 +2204,7 @@ init_os (lang_output_section_statement_type *s, flagword flags)
s->name, flags);
if (s->bfd_section == NULL)
{
einfo (_("%P%F: output format %s cannot represent section called %s\n"),
einfo (_("%P%F: output format %s cannot represent section called %s: %E\n"),
link_info.output_bfd->xvec->name, s->name);
}
s->bfd_section->output_section = s->bfd_section;